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

From: Date: Tue, 26 Feb 2008 12:17:30 +0000
Subject: RES: [PHP-DB] INSERT query with Primary and foreign key
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-44652@lists.php.net to get a copy of this message
This is more SQL than PHP, how did you create your constraints? Did you set insert on CASCADE? -----Mensagem original----- De: Nasreen Laghari [mailto:nasreen_laghari@yahoo.com] Enviada em: segunda-feira, 25 de fevereiro de 2008 22:15 Para: php-db@lists.php.net Assunto: [PHP-DB] INSERT query with Primary and foreign key 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 better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

« previous php.db (#44652) next »