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
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 =
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
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
4 matches
Mail list logo