note 14171 deleted from function.mysql-insert-id by tomsommer
| From: | tomsommer@php.net | Date: | Sun, 04 Apr 2004 01:25:47 +0000 |
| Subject: | note 14171 deleted from function.mysql-insert-id by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-67601@lists.php.net to get a copy of this message | ||
Note Submitter: darianlassan@yahoo.de
----
Acording to mark@wildrhino.com 24-Jun-2001 04:38:
Check with (mysql_affected_rows()>0) if mysql_insert_id() returns a real id.
<?php
if (mysql_affected_rows()>0) $id=mysql_insert_id();
?>