note 62672 rejected from function.mysql-select-db by bjori
| From: | bjori@php.net | Date: | Tue, 07 Mar 2006 01:45:40 +0000 |
| Subject: | note 62672 rejected from function.mysql-select-db by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-104954@lists.php.net to get a copy of this message | ||
Note Submitter: markios121 at hotmail dot com
----
Im quite new to PHP and connecting it with mysql, and can currently add data into a db with a single
table.
using the following syntax
mysql_select_db('database');
$query = "insert into table1 values
('".$value1."', '".$value2."', etc
what im not sure how to do is add data into more than one table. The two tables i am using are
linked with a foreign key and are set to innoDB .
please can someone help
thanks