Re: [PHP] Making a true statement false.

2003-03-07 Thread ed
Thanks for all the help. I was just placing the ! in the wrong place. Thanks again, Ed On Fri, 7 Mar 2003, Greg Beaver wrote: > > > Mincu Alexandru wrote: > > On Fri, 2003-03-07 at 18:16, [EMAIL PROTECTED] wrote: > > > >>Whenever I query a database with php I've always used the following

Re: [PHP] Making a true statement false.

2003-03-07 Thread Greg Beaver
Mincu Alexandru wrote: On Fri, 2003-03-07 at 18:16, [EMAIL PROTECTED] 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 } It is simpler to do this: if ($row =

Re: [PHP] Making a true statement false.

2003-03-07 Thread Mincu Alexandru
On Fri, 2003-03-07 at 18:16, [EMAIL PROTECTED] 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 some

[PHP] Making a true statement false.

2003-03-07 Thread ed
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 fa