php function last_insert_id() is not working with REPLACE INTO query
Posted
by PankajK
on Stack Overflow
See other posts from Stack Overflow
or by PankajK
Published on 2010-04-15T10:44:24Z
Indexed on
2010/04/15
10:53 UTC
Read the original article
Hit count: 346
I am using REPLACE INTO query to insert in to table but after executing query by using mysql_query() function and if I use last_insert_id() it is only giving me 0 value.
why this is happening so? and how can I overcome this behavior.
:Pankaj
© Stack Overflow or respective owner