What's wrong with this code?
$query = "select * from user where email= '$email'";
if( mysql_num_rows( $query )==0 ){
echo '<tr><td colspan="4">No Rows Returned</td></tr>';
}else{
while($row = mysql_fetch_assoc( $query ) ) {
$id=$row['id'];
echo"yolo";
}
I have the email in my db `but it returns
No rows returned
Why?