|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
PEAR and autoincrement
When I have an autoincrement field in MySQL I know how to retrieve the new inserted value by using direct mysql calls, but is there also some way to retrieve the value of the autoincrement field when I use PEAR ????
|
|
#2
|
||||
|
||||
|
RE: PEAR and autoincrement
Try using $id=mysql_insert_id(); don't know if it'll work w/ pear though.
|
|
#4
|
|||
|
|||
|
RE: RE: PEAR and autoincrement
Quote:
Eh... Guess it's some outdated link 'Error 404 - document not found The requested document /manual/en/package.database.db.intro-sequences.php was not found in the PEAR manual. Please go to the Table of Contents and try to find the desired chapter there.' |
|
#5
|
|||
|
|||
|
RE: PEAR and autoincrement
Oh... guess the page is not outdated but the PEAR/PHP sites have some general problem... on both the PEAR and the PHP site non of the documentation is accessable at the moment... I'll try to check it out later, thanks for the reply anyway.
|
|
#6
|
|||
|
|||
|
RE: RE: PEAR and autoincrement
Quote:
It works, but I think it's no good practice to 'mix' abstracted (via PEAR) and non-abstracted calls to the database... The idea was that the application I'm writing could be portable to other databases too, which isn't if I use MySQL specific calls. Thanks anyways for the reply |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PEAR Packages > PEAR and autoincrement |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|