[PHP-DB] Reference to SQL qyery result ????????

2003-09-20 Thread Evgeny
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 ? Thank you very much for any help. -- PHP

Re: [PHP-DB] Reference to SQL qyery result ????????

2003-09-20 Thread Jason Wong
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

Re: [PHP-DB] Reference to SQL qyery result ????????

2003-09-20 Thread Evgeny Margulis
Thank you, I'll try. I'm very very new (just 4 hours :)) in php programming. Thank you again. - Original Message - From: Jason Wong [EMAIL PROTECTED] Newsgroups: php.db To: [EMAIL PROTECTED] Sent: Saturday, September 20, 2003 4:19 PM Subject: Re: [PHP-DB] Reference to SQL qyery result