Re: Making a true statement false.
| From: | Mincu Alexandru | Date: | Fri, 07 Mar 2003 16:29:21 +0000 |
| Subject: | Re: Making a true statement false. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138651@lists.php.net to get a copy of this message | ||
On Fri, 2003-03-07 at 18:16, ed@home.homes2see.com wrote:
> Whenever I query a database with php I've always used the following code
> as a result.
>
this way:
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
--
Mincu Alexandru intelinet.ro
Tel:+4 0745 369719 +4 021 3140021
www.intelinet.ro office@intelinet.ro