Topic awaiting preservation: Multible Database Access in PHP (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: |
posted 12-04-2004 09:25
$dbh=mysql_connect ("localhost", "root", "triadpass") or die ('I cannot connect to the database because: ' . mysql_error()); |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 12-04-2004 11:43
you'll either need to create two different connections to your database, which will result in two hlinks that you'll have to pass to the query every time, or select your database right before your query, every time you need another database. |
Nervous Wreck (II) Inmate From: |
posted 12-09-2004 07:12
thnx dude!! it becomes the solution :-) |