[PHP] One form - two db's?

2003-04-02 Thread Scott Miller
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?

Just dreaming of ways to make my life easier.

Scott


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] One form - two db's?

2003-04-02 Thread John W. Holmes
 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/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php