Warning:mysql_fetch_array() expects parameter 1 to be resource,boolean given in

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/30 06:31:20
Warning:mysql_fetch_array() expects parameter 1 to be resource,boolean given in
x_K`ƿaBns ]x!Bh|7 2,PWQAAUX }9EsK{<

Warning:mysql_fetch_array() expects parameter 1 to be resource,boolean given in
Warning:mysql_fetch_array() expects parameter 1 to be resource,boolean given in

Warning:mysql_fetch_array() expects parameter 1 to be resource,boolean given in
你执行的是一个插入语句,然后while里面确是取数据的 这怎么可能不出错呢,
$myquery = "INSERT INTO book_tbl (title) VALUES('".$_SESSION['title']."')";
$result = mysql_query($myquery);
$sql = "select * from book_tbl"; 
$query = mysql_query($sql);
while($row = mysql_fetch_array($query))