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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
*/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux