note 21688 added to function.mysql-insert-id
| From: | doomkers at lvaei dot lv | Date: | Thu, 23 May 2002 11:20:28 +0000 |
| Subject: | note 21688 added to function.mysql-insert-id | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-30936@lists.php.net to get a copy of this message | ||
i have problem - mysql_insert_id with argument does not return ID but show :
Supplied argument is not a valid MySQL-Link resource in ...
My table have ID auto inc. with mediumint(1);
$bida=mysql_query("insert into hzz (hzza) values ('ala')");
print mysql_insert_id($bida);
Is it a bug ?
--
http://www.php.net/manual/en/function.mysql-insert-id.php
http://master.php.net/manage/user-notes.php?action=edit+21688
http://master.php.net/manage/user-notes.php?action=delete+21688
http://master.php.net/manage/user-notes.php?action=reject+21688