For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > February 2007 > Re: [PHP-DB] find row id where i input









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] find row id where i input
Alexander

2007-01-27, 3:57 am

The easiest way is to use mysql_insert_id();

----- Original Message -----
From: "bedul" <landavia81@gmail.com>
To: <tg-php@gryffyndevelopment.com>; <php-db@lists.php.net>
Cc: <APWKomitel@yahoogroups.com>
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
>

Edsterterhaup37

2007-02-11, 11:11 pm

Lindsay Lohan Doing A Hung Guy!
http://Lindsay-Lohan-Doing-A-Hung-G...hp?movie=726071
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com