Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: Insert function


Message #1 by Jefferis Peterson <jefferis@p...> on Thu, 24 May 2001 21:19:25 -0400
 "mysql_insert_id(link_id)  returns the ID generated by an Autoincrement
field in a previous Insert Statement"

It appears that you can only call this value once, and any other attempts
to use this function on a single connection and record insert will screw
things up. How else can you fetch the primary key ID from the current
record in the current connection?  Since one connection could
theoretically insert multiple records, what parameters should be used? 

Jeff

-- 
Jefferis Kent Peterson
www.PetersonSales.net
Flash, Web Design and Marketing 
ICQ 19112253
_______
"Happy is the person who finds wisdom, and the one who gets
understanding, for the gain from it is better than gain from silver and
its profit better than gold."  - Proverbs 3:13,14.


  Return to Index