spraypray12 Posted April 27, 2007 Share Posted April 27, 2007 I've tested diffferent tables, and made new ones, with id set to auto_increment and still returns zero everytime. Won't work in mysql query browser, or in php script. Mysql version 4.1.20 for server Quote Link to comment https://forums.phpfreaks.com/topic/48990-last_insert_id-returns-0/ Share on other sites More sharing options...
AndyB Posted April 28, 2007 Share Posted April 28, 2007 Do you mean mysql-insert-id? http://ca.php.net/manual/en/function.mysql-insert-id.php Quote Link to comment https://forums.phpfreaks.com/topic/48990-last_insert_id-returns-0/#findComment-240157 Share on other sites More sharing options...
Wildbug Posted April 30, 2007 Share Posted April 30, 2007 What query/ies are you using? Quote Link to comment https://forums.phpfreaks.com/topic/48990-last_insert_id-returns-0/#findComment-241802 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.