Re: [PHP-DB] Newbie alert: supplied argument is not a valid MySQL result resource

2007-07-11 Thread Matt Leonhardt
""lameck kassana"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hey just make this > $sid = mysql_fetch_array($query) or die ('Could not fetch from database: >> ' ." mysql_error()."); > try this Yep. I figured that out yesterday. Hit the nail right on the head. As I've lear

Re: [PHP-DB] Newbie alert: supplied argument is not a valid MySQL result resource

2007-07-11 Thread Niel
Hi > On my way to bed so too tired too look closely, but at a guess I'd say > it's a logic error. I would guess this: > > >$sid = mysql_fetch_array($query) || die ('Could not fetch from database: > > ' . mysql_error()); // <--- line 49 > > isn't evaluating in the order you expect.. You

Re: [PHP-DB] Newbie alert: supplied argument is not a valid MySQL result resource

2007-07-11 Thread lameck kassana
hey just make this $sid = mysql_fetch_array($query) or die ('Could not fetch from database: ' ." mysql_error()."); try this

Re: [PHP-DB] Newbie alert: supplied argument is not a valid MySQL result resource

2007-07-09 Thread Niel Archer
Hi On my way to bed so too tired too look closely, but at a guess I'd say it's a logic error. I would guess this: >$sid = mysql_fetch_array($query) || die ('Could not fetch from database: > ' . mysql_error()); // <--- line 49 isn't evaluating in the order you expect.. You're using a lo

[PHP-DB] Newbie alert: supplied argument is not a valid MySQL result resource

2007-07-09 Thread Matt Leonhardt
Okay, so I get that the mysql_query() function here is not returning a valid resource identifier. I just can't figure out why...here's the pertinent code: (db.php) (auth.php) http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php