this code gives me this error!?!
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/www/chrisdavis/Projects/search.php on line 37
Why? Thanks!
<?
$connection = @ mysql_pconnect($hostName, $username, $password) or die(mysql_error());
$db = mysql_select_db($databaseName, $connection) or die(mysql_error());
$query = mysql_query("SELECT (pro_image1, pro_name) FROM projects WHERE (pro_feat) = ('yes')");
/* Line 37 */ while ($feature = mysql_fetch_array($query)){
?>
<td><? $feature['pro_image1']; ?></td></tr>
<tr><td><? $feature['pro_name']; ?></td>
<?
} // End While
?>