
February 1st, 2013, 06:43 AM
|
|
Registered User
|
|
Join Date: Jan 2013
Location: Visakhapatnam
Posts: 11
Time spent in forums: 4 h 57 m 40 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by jaykappy Trying this
$db = new PDO ("mssql:host=$hostname;dbname=$dbname";charset=utf8","$username","$password", $options);
I have a website created on my server that also has the SQL Server on it. Just testing here.
how do I specify my host name? |
$hostname='localhost';
$dbname='your db name';
The same with username and password.
|