Quantcast
Channel: How do I change the !isset statement - Stack Overflow
Browsing latest articles
Browse All 4 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 latest articles
Browse All 4 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>