我有问题mysql_fetch_array
。我收到警告:
mysql_fetch_array() expects parameter 1 to be resource, boolean given in D:\wamp\www\bb.php on line 6 bool(false)
这是我的代码:
if (isset($_POST['chapter'])AND isset($_POST['verse'])){
$db=mysql_connect("localhost","fruanthony","admin");
mysql_select_db("gths",$db);
$results=mysql_query("SELECT * FROM bible where verse=".$_POST['verse']."AND chapter=".$_POST['chapter']);
while($a=mysql_fetch_array($results)){
echo $a['info'] ;
echo "<br>";
}
}