note 14621 added to function.mysql-insert-id.php
| From: | jason-at-detonate-dot-net at php2 dot chek dot com | Date: | Mon, 06 Aug 2001 20:41:23 +0000 |
| Subject: | note 14621 added to function.mysql-insert-id.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16414@lists.php.net to get a copy of this message | ||
It would seem that if your auto_increment field is also set to zerofill, mysql_insert_id()
doesn't give you the whole number (i.e. '00015'). It gives you simply
'15'.
http://www.php.net/manual/en/function.mysql-insert-id.php