Call: 91-141-4027775[Visit http://web2domains.com]  
Support Center » Knowledgebase » How can I Connect to an SQL database using a PHP script ?
 How can I Connect to an SQL database using a PHP script ?
Solution

 

You can use the following code to connect to a SQL database a PHP script:

$hostname = "SQL.DOMAIN.com";
$username = "User";
$password = "Pass";
$dbName = "DatabaseNamedb";

MSSQL_CONNECT($hostname,$username,$password)

Article Details
Article ID: 327
Created On: 24 Feb 2009 10:06 AM

 This answer was helpful  This answer was not helpful

 Back
 Login  
Username:
Password:
Remember Me:
 
 Search
 Article Options
Home | Submit a Ticket | Knowledgebase | Troubleshooter | News | Downloads
Language: