Possible Duplicate:
mysql_fetch_array() expects parameter 1 to be resource, boolean given in select
Just trying to pull some data from an existing table with existing data, where the search parameter exists.
<html>
<body>
<?php
$con = mysql_connect("localhost","***","***");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("ubook247", $con);
$result = mysql_query("SELECT * FROM buzz_data
WHERE index = '4'");
while($row = mysql_fetch_array($result))
{
echo $row['buzz_img'] . " " . $row['buzz_title'];
}
?>
</body>
</html>
error says:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\ubook247\php\display_buzz_data.php on line 16
Where line 16 is:
while($row = mysql_fetch_array($result))
Since I'm using phpMyAdmin, and am not real familiar with MySQL, here's a pic of the field setup: