mysql_insert_id() and LAST_INSERT_ID()

Discussion in 'PHP' started by aayybb, Aug 19, 2009.

  1. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #21
    Yeah, we really do not need alternative solutions. mysql_insert_id is the only one that is concurrency proof and will work 100% of the time.
     
    premiumscripts, Aug 25, 2009 IP
  2. AdnanAhsan

    AdnanAhsan Well-Known Member

    Messages:
    601
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #22
    Developer always should code according to his needs and it definitely depends on aim of codes. My above code is just for educate other :)
     
    AdnanAhsan, Aug 25, 2009 IP