Hello,

How do I use the linkidentifier to get me the last_inserted_id
(mysql_insert_id) from a auto_increment-colomn?

Do I use:
>>
  $q_orders_id2 = "INSERT INTO orders(orders_datum, orders_sessid)";
  $q_orders_id2.= " VALUES ('$date', '$sid')";
  $r_orders_id2 = mysql_query($q_orders_id2, $sqllink_id);
  $orders_id = mysql_insert_id($sqllink_id);
<<

"$sqllink_id" must be the inserted value for the auto-increment-colomn named
"orders_id" and is placed in var "$orders_id"


Can anyone tell me if this is correct and what can be done to optimize?


regards
Bart



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to