Can't find an error in the code
function update_error_reasons ($hostid, $hostname, $error_reason)
{
$db_server = '';
$db_user = '';
$db_pwd = '';
$db_name = '';
$db_link = @mysql_connect($db_server, $db_user, $db_pwd);
$database = @mysql_select_db($db_name, $db_link);
$update_error_reasons = mysql_query ("
update server_error_reasons set error_reasons = $error_reason
where
hostid = $hostid
and
hostname = $hostname;");
}
Hi guys I don't seem to be able to find an error in this function, yet it doesn't update the table :(
Any ideas?