SQL Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
in C:\xampp\htdocs\RTN\comment.php, line 21
here is the code for line 21 (first line in code is 21)
- Code: Select all
$ras = mysql_query("SELECT commentpm FROM users WHERE id = $arr[owner]") or sqlerr(__FILE__,__LINE__);
$arg = mysql_fetch_array($ras);
$arr = mysql_fetch_array($res,MYSQL_NUM);
if (!$arr)
stderr("Error", "No torrent with ID.");
any idea on why i would get this error?
thanks
squills