Re: Reference to SQL qyery result ????????

From: Date: Sun, 21 Sep 2003 10:04:54 +0000
Subject: Re: Reference to SQL qyery result ????????
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-30595@lists.php.net to get a copy of this message
Thank you, I'll try. I'm very very "new" (just 4 hours :)) in php programming. Thank you again. ----- Original Message ----- From: "Jason Wong" <php-db@gremlins.biz> Newsgroups: php.db To: <php-db@lists.php.net> Sent: Saturday, September 20, 2003 4:19 PM Subject: Re: [PHP-DB] Reference to SQL qyery result ???????? > On Sunday 21 September 2003 17:37, Evgeny wrote: > > > When I run this query in MySqlAdmin the result is 124 > > but I can't retrieve the result by code > > > > $result = $DB_site->query("SELECT MAX(id) AS ID1 FROM chatbox "); > > $rangee = mysql_fetch_assoc($result) ; > > $identifiant = $rangee['id1'] ; > > > > What the problem ? > > Case-sensitivity issue? > > Did you try *any* debugging at all? Eg print_r($rangee)? > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > ------------------------------------------ > Search the list archives before you post > http://marc.theaimsgroup.com/?l=php-db > ------------------------------------------ > /* > Love is in the offing. Be affectionate to one who adores you. > */

« previous php.db (#30595) next »