The easiest way is to use mysql_insert_id();

----- Original Message ----- From: "bedul" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <php-db@lists.php.net>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, January 27, 2007 12:14 AM
Subject: [PHP-DB] find row id where i input


i'm creating a big database using mysql.
after input into database i want to know what id (row id) where my data
input whereabout.
consider i don't have many user where access and input in same time.. but i
just want to make preparation for the case.

how can i able to know what id i have?? any suggestion

=====================================
Inserted rows: 1
Inserted row id: 2 (Query took 0.0277 sec)
================================

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to