NYCPHP Meetup

NYPHP.org

[nycphp-talk] why does setcookie fail?????

Phil Powell soazine at erols.com
Sat Sep 6 17:14:13 EDT 2003


I normally use mysql_fetch_array with the MYSQL_ASSOC constant, but since
this is guaranteed to return 1 row (or no rows) I felt using a while() loop
with mysql_fetch_array was a waste of time.

Phil
----- Original Message ----- 
From: "Brian Pang" <bpang at bpang.com>
To: "NYPHP Talk" <talk at lists.nyphp.org>
Sent: Saturday, September 06, 2003 5:13 PM
Subject: Re: [nycphp-talk] why does setcookie fail?????


> now, why didn't we catch that sooner!?!?!
>
> I guess I never attempt to use association from mysql fetched rows.
>
> note: ASSOCiation (or BOTH; default) DOES work with mysql_fetch_array()
>
>
>
> > exactly.
> >
> > phil used:
> >
> >   if ($hasLoggedIn && ($row = mysql_fetch_row($query))) {
> >
> > which does not return an associative array.
>
> <snipped>
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk




More information about the talk mailing list