Quantcast
Channel: How do I change the !isset statement - Stack Overflow
Browsing all 4 articles
Browse latest View live

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 Article



Answer 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 Article

Answer 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 Article

How 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
Browsing all 4 articles
Browse latest View live




Latest Images