Making a true statement false.
| From: | ed at home dot homes2see dot com | Date: | Fri, 07 Mar 2003 16:16:21 +0000 |
| Subject: | Making a true statement false. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-138648@lists.php.net to get a copy of this message | ||
Whenever I query a database with php I've always used the following code
as a result.
if ($row = mysql_fetch_array($result)) {
do something }
else {
do seomthing else }
This method will persuades you to take action on something true first then
false.
How would I write it so it would assume false then true?
Thanks,
Ed