phpbar.de logo

Mailinglisten-Archive

[php] =?iso-8859-1?Q?Re:_=5Bphp=5D_Re:_=5Bphp=5D_Re:_=5Bphp=5D_zwei_DBs_=F6ffnen?=

[php] Re: [php] Re: [php] Re: [php] zwei DBs öffnen

Dietmar Becker php_(at)_phpcenter.de
Mon, 18 Jun 2001 14:27:57 +0200


# Anfrage an Datenbank Nr.1
$link1 = mysql_connect ("host1", "user1", "pass1") or die ("Could not
connect to host1");
$result1 = mysql_query ("SELECT * FROM tabl") or die ("Invalid query");
mysql_close ($link1);

# Anfrage an Datenbank Nr.2
$link2 = mysql_connect ("host2", "user2", "pass2") or die ("Could not
connect to host2");
$result2 = mysql_query ("SELECT * FROM tabl") or die ("Invalid query");
mysql_close ($link2);


Mit freundlichen Grüssen
Dietmar Becker



php::bar PHP Wiki   -   Listenarchive