My database contains data as per the sample below. I would like to select the red highlighted row. Tried this query but doesn't display the row that I wanted. Any help is very much appreciated.
<?php
mysql_connect("localhost", "xxxxx", "xxxxx") or
die("Could not connect: " . mysql_error());
mysql_select_db("xxxxx");
$result = mysql_query("SELECT * FROM tablename");
$row = mysql_fetch_array($result);
if($row['imageurl'] == 0){
echo $row['email'];
}
mysql_free_result($result);
?>
Code above will return '[email protected]'.
