Re: [PHP-DB] INSERT query with Primary and foreign key

2008-02-26 Thread Daniel Brown
On Mon, Feb 25, 2008 at 8:15 PM, Nasreen Laghari <[EMAIL PROTECTED]> wrote: > Hi, > > I need help to insert date into two tables when tables have primary and > foreign key relationship using php. I tried simple INSERT query but foreign > key colum is storing NULL. What's your SQL query stri

RE: RES: [PHP-DB] INSERT query with Primary and foreign key

2008-02-26 Thread Bastien Koert
30 -0300> Subject: RES: [PHP-DB] INSERT query with > Primary and foreign key> > This is more SQL than PHP, how did you create your > constraints?> > Did you set insert on CASCADE?> > -Mensagem > original-> De: Nasreen Laghari [mailto:[EMAIL PROTECTED]

RES: [PHP-DB] INSERT query with Primary and foreign key

2008-02-26 Thread Thiago Pojda
This is more SQL than PHP, how did you create your constraints? Did you set insert on CASCADE? -Mensagem original- De: Nasreen Laghari [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 25 de fevereiro de 2008 22:15 Para: php-db@lists.php.net Assunto: [PHP-DB] INSERT query with

[PHP-DB] INSERT query with Primary and foreign key

2008-02-25 Thread Nasreen Laghari
Hi, I need help to insert date into two tables when tables have primary and foreign key relationship using php. I tried simple INSERT query but foreign key colum is storing NULL. Regards Nasreen Be a