forum

PHP: mysql_fetch_array() expects parameter 1 to be resource, boolean given [duplicate]

瘦欲@ 提交于 2019-11-27 09:06:45
问题 Possible Duplicate: MySQL & PHP Parameter 1 as Resource I am getting shown in the title on my website and don't what kind of error this is, neither do I know how to fix this. Can anyone help me? This is the add_answer.php file: <?php include("mysql_forum_test.php"); // Get value of id that sent from hidden field $id=$_POST['id']; // Find highest answer number. $sql="SELECT MAX(a_id) AS Maxa_id FROM $tbl_name WHERE question_id='$id'"; $result=mysql_query($sql); $rows=mysql_fetch_array($result)