note 16031 deleted from function.max by didou

From: Date: Wed, 23 Jul 2003 01:26:33 +0000
Subject: note 16031 deleted from function.max by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-52480@lists.php.net to get a copy of this message
Note Submitter: till@klimpong.com ---- People kept asking me how to select the highest ID from a table. Here it is... $query1=MYSQL_QUERY("SELECT max(id) as max_id FROM table"); $getvar=MYSQL_FETCH_ARRAY($query1); $id=$getvar["max_id"];

« previous php.notes (#52480) next »