$query = "query...";
$query_result = mysql_query($query, $db_connection);
if(CONDITIONAL){
while ($row = mysql_fetch_array($query_result, MYSQL_ASSOC)){
//do stuff with $row
}
}else{
echo "No results were found";
}
What should I use for CONDITIONAL?
I've tried:
if($query_result){
if($query_result != NULL){
if($query_result != ""){
but I still just get a blank page if there are no results found.
So what should I use instead?


