What does a mysql
Possible Duplicate:
mysql_fetch_array() expects parameter 1 to be resource, boolean given in select
Warning: mysql_fetch_* expects parameter 1 to be resource, boolean given error
Not much to explain. I am using the code listed above and getting the error listed below. I am pretty clueless about what this error means and would love an explanation.
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in ...
$query = "SELECT id
FROM table
WHERE user!= '$username'
AND reviewed is NULL
Order By ABS (uploaderrating- $rating) - Case When catagory== '$catagory' Then 1 Else 0 End
LIMIT 0,1";
$result = mysql_query($query);
$row1= mysql_fetch_array($result);
$id1 = $row1[id];
$_SESSION['reference1']= $id1;
我发现了这个错误:当它应该是单个=
时,我只是有一个double ==
。
上一篇: PHP版本5.2.14 /分析错误:语法错误,意外的T
下一篇: 什么是一个MySQL