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 Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php