Database connection
- From: "Marcel" <sorryafraidofspam@xxxxxxxxxx>
- Date: Tue, 18 Oct 2005 10:21:27 +0200
<?php
I have a question about 2 connection strings to a ms sql database.
# TEST DATABASE
$connecttest = MSSQL_CONNECT("TEST", "sa", "123456") or exit("Unable to
connect to MS SQL Server at 10.0.10.58");
$select = mssql_select_db ("database1",$connecttest) or exit("Unable to
select database TEST");
# PRODUCTION DATABASE
$connectprod = MSSQL_CONNECT("PROD", "sa", "654321") or exit("Unable to
connect to database at 10.0.10.59");
$select = mssql_select_db ("database2",$connectprod) or exit("Unable to
select database PROD");
$SQL = "SELECT * FROM table1";
$RESULT = mssql_query($SQL);
// What data will i find here? Is it data from the TEST or from PROD and
will it be data from database1 or from database 2?
?>
.
- Follow-Ups:
- Re: Database connection
- From: Meiao
- Re: Database connection
- From: Steve
- Re: Database connection
- Prev by Date: Newbie: show page break in records
- Next by Date: Re: Newbie: show page break in records
- Previous by thread: Newbie: show page break in records
- Next by thread: Re: Database connection
- Index(es):
Relevant Pages
|