Date: 01/26/01
- Next message: Maxim Maletsky: "[phplib] How do I "undeclare" Db_Sql ?"
- Previous message: Gerd v. Egidy: "[phplib] bug in oohforms (radio buttons)"
- Maybe in reply to: David Escala: "[phplib] mysql_insert_id() returns zero"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
you need to add code to php lib to get the id. I did this by recompiling
my php to include sysv
and added a semaphore to php lib to insure when I do an insert I don't do
another
select and whipe out my db handle. I added a new function to phplib
which to return
mysql_insert id.
> -----Original Message-----
> From: David Escala [SMTP:descala <email protected>]
> Sent: Tuesday, January 23, 2001 5:12 AM
> To: PHPLib List
> Subject: [phplib] mysql_insert_id() returns zero
>
> hello all,
>
> I recently uploaded a new site to our demo server. you can see it at
> http://mutua.fonocom.es/ (we are still working on it) the problem is that
> after any insert the mysql_insert_id() just returns zero and we can't use
> it for the foreign keys! that didn't happen in the development server. I
> guess the
> problem is an incorrect php/apache/mysql configuration
> (http://www.fonocom.es/phpinfo). any hints?
>
> thanks,
>
> david escala
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Maxim Maletsky: "[phplib] How do I "undeclare" Db_Sql ?"
- Previous message: Gerd v. Egidy: "[phplib] bug in oohforms (radio buttons)"
- Maybe in reply to: David Escala: "[phplib] mysql_insert_id() returns zero"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

