sudo apt-get install php5-mssql
Code Test :
<?php
$myServer = "server";
$myUser = "user";
$myPass = "password";
$myDB = "database";
//connection to the database
or die("Couldn't connect to SQL Server on $myServer");
//select a database to work with
or die("Couldn't open database $myDB");
//declare the SQL statement that will query the database
$query = "SELECT ItemId ";
$query .= "FROM InventTable ";
//execute the SQL query and return records
//display the results
{
}
//close the connection
?>
No comments:
Post a Comment