I have problems with mysql_fetch_array. I get a warning:
mysql_fetch_array() expects parameter 1 to be resource, boolean given in D:\wamp\www\bb.php on line 6 bool(false)
Here is my code:
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>";
}
}