RE: [PHP] One form - two db's?
| From: | John W. Holmes | Date: | Wed, 02 Apr 2003 23:24:14 +0000 |
| Subject: | RE: [PHP] One form - two db's? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142042@lists.php.net to get a copy of this message | ||
> Is it feasible to have a php form update two different MySQL DB's at
the
> same time, with all info going to one DB, and just certain info going
to
> the second?
Yes... make your connection, select the first database, do your insert,
select the second database, and do your final insert. Isn't rocket
science, eh? Use mysql_select_db() to change databases...
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/