Answer by Wesley Schleumer de Góes for How do I change the !isset statement
Don't forget that mysql_query can return false, so:if($result){ if(mysql_num_rows($result) == 0){ echo "9999"; }}
View ArticleAnswer by hek2mgl for How do I change the !isset statement
From the documentation:isset -Returns TRUE if var exists and has value other than NULL, FALSE otherwise.But $result will be a valid MySQL resouce - event if there are no results from the query.From the...
View ArticleAnswer by jtheman for How do I change the !isset statement
You are looking for:if(mysql_num_rows($result) == 0){ echo "9999";} else {Documentation: http://www.php.net/manual/en/function.mysql-num-rows.phpYou assign a value to $result when you say $result =...
View ArticleHow do I change the !isset statement
I have a php page with the code below. The MySQL query is working correctly but I have tried adding an IF statement which isn't working. The if(!isset($result)) statement is supposed to catch...
View Article
More Pages to Explore .....