Re: mysql quickie..
| From: | Robert Cummings | Date: | Wed, 17 Apr 2002 18:49:19 +0000 |
| Subject: | Re: mysql quickie.. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-93372@lists.php.net to get a copy of this message | ||
Richard Emery wrote:
>
> I've seen other responses to your request answer with some VERY UGLY methods
> to get the last id.
Hey my method wasn't ugly, perhaps not optimal, but definately not ugly!
So *ptttttht* ;)
> Instead, use mysql_insert_id() which was created specifically for the info
> you need.
Ummm yeah... I was gonna say that too, BUT FORGOT!
Cheers,
Rob.
--
.-----------------.
| Robert Cummings |
:-----------------`----------------------------.
| Webdeployer - Chief PHP and Java Programmer |
:----------------------------------------------:
| Mail : mailto:robert.cummings@webmotion.com |
| Phone : (613) 731-4046 x.109 |
:----------------------------------------------:
| Website : http://www.webmotion.com |
| Fax : (613) 260-9545 |
`----------------------------------------------'