note 84616 deleted from function.mysql-insert-id by cmb

From: Date: Sun, 16 Feb 2020 13:40:36 +0000
Subject: note 84616 deleted from function.mysql-insert-id by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-214126@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- If i can't get a good increment. I use this function <?php function get_new_id($table){ $select = 'select max(id) +1as id from '.$table.' where id != <some big id>'; $query = mysql_query($select); $obj = mysql_fetch_object($query); return $obj->id; } ?>

« previous php.notes (#214126) next »