note 62672 added to function.mysql-select-db
| From: | markios121 at hotmail dot com | Date: | Tue, 07 Mar 2006 00:58:27 +0000 |
| Subject: | note 62672 added to function.mysql-select-db | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-104949@lists.php.net to get a copy of this message | ||
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
----
Server IP: 84.18.202.180
Probable Submitter: 82.42.2.66
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.mysql-select-db.php
Edit -- http://master.php.net/note/edit/62672
Del: integrated -- http://master.php.net/note/delete/62672/integrated
Del: useless -- http://master.php.net/note/delete/62672/useless
Del: bad code -- http://master.php.net/note/delete/62672/bad+code
Del: spam -- http://master.php.net/note/delete/62672/spam
Del: non-english -- http://master.php.net/note/delete/62672/non-english
Del: in docs -- http://master.php.net/note/delete/62672/in+docs
Del: other reasons-- http://master.php.net/note/delete/62672
Reject -- http://master.php.net/note/reject/62672
Search -- http://master.php.net/manage/user-notes.php