why cant i do this
Posted: Tue Jul 19, 2005 10:05 am
i have a class with a query function which simply does mysql_query or die ok easy but what i want is the good debuging stuff so i want it to look like this
but when i put in the line file things they dont go through to the function and it just ends up as nothing. why?
Code: Select all
function query($query, $line, $file)
{
$do_query = mysql_query($query) or die(mysql_error().' '.$line.'-'.$file);
return $do_query;
}
$query = 'asgasgdsg';
query($query, __LINE__, __FILE__);