... Php mssql ...



• Php & mssql »»


I've upgraded to PHP 5.2.6 and im running SQL Server Express 2005. Trying to get a simple query from the SQL server to display in a PHP page, i have the MSSQL module showing up in the phpinfo() page and im running the code below, its not givign any errors just keeps printing out the message i have put if for the 'or die' clause.

Any ideas or help is always appreciated.

PHP Code:
<?
php $dbusername = 'sa';
$dbpassword = 'adm1n';
$servername = 'ADMINSQLEXPRESS';
$myDB = 'testdb';

$link = mssql_connect ($servername,$dbusername,$dbpassword) or die('Unable to connect to database.');
?>
 Bookmark with:            
Source: IrishWebMasterForums | pub: 01 Dec 2008 by: ziycon | added: 01 Dec 2008 | cat: Coding Help | views: 12 time/s
Leave a Comment...
Name: *
Email: *
Comment: *
Security Code: security code
*
     Remember me:
Categories
Channels
Press Release