Hallo zusammen,
ich möchte in PHP zwei Datenbanken ansprechen. Mein Code zur Zeit:
($db_* sind gegeben und auch in Ordnung)
$conn=mysql_pconnect($db_server,$db_login, $db_passwd) || die ("Unable to connect to database!");
$_SESSION['prod']=mysql_select_db($db_database,$conn) || die ("Unable to access the database");
$conn2=mysql_pconnect($db_server_b,$db_login_b,$db_passwd_ || die ("Unable to connect to backup-database!");
$_SESSION['backup']=mysql_select_db($dsb_database_b,$conn2) || die ("Unable to access the backup-database");
[/PHP]
Ich möchte also die Verbindungskennungen in den Sessionvariablen 'prod' und 'backup' speichern.
Folgende Fehlermeldung (zweite Zeile):
Kann mir jemand erklären, was ich falsch gemacht habe?
Vielen Dank schon mal