Ok guys,
I just updated to a new server, and am wondering why this is happening..
If I use this, I get an erro saying it is not a valid mysql resource whenever I use numrows.
$sql = "SELECT * FROM check WHERE var='$var'";
$result = mysql_query($sql);
$numrows = mysql_numrows($result);
But When I use this, it works fine
$sql = 'SELECT * '
. ' FROM `check`' . " WHERE var='$var'";
Could anyone tell me what the difference is?