Welcome to WebmasterWorld Guest from 54.205.96.97

Forum Moderators: coopster & jatar k

latest wamp does not work for mysql insert id()

latest wamp does not work for mysql_insert_id()

   
4:38 am on Oct 9, 2009 (gmt 0)

5+ Year Member



Hello everybody,

Someone who knows how to fix mysql_insert_id() for latest version of wamp's php and mysql?

I had tried, the mysql_insert_id() almost return 0 value, it never return any value after INSERT INTO db.

Is it setting of php or mysql issue or other issue?

If not, someone who uses that mysql_insert_id(), it will meet problem in future.

thanks!

6:20 am on Oct 24, 2009 (gmt 0)

WebmasterWorld Senior Member dreamcatcher is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Are you sure you are calling it after the very last insert? ie, you aren`t calling it after another mysql operation?

I used to use Wamp, but tend to use Xampp these days as I think its much better.

dc

12:57 am on Oct 30, 2009 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



The function is also deprecated. Read the note on the PHP online manual page for preferred processes.
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month