Mohammad, be sure your SQL driver is working.
First, I created for you a script to verify if your SQL is working with you PHP.
<?php
//Configuration of your database
$config = array(
"server" => "YOUR_SERVER_ADDRES",
"user" => "YOUR_USER",
"password" => "YOUR_PASSWORD",
"database" => "YOUR_DATABASE"
);
//Creating connection
$dbhandle = mssql_connect($config["server"], $config["user"], $config["password"]) or die("Error on database connection");
//Selecting database
$selected = mssql_select_db($config["database"], $dbhandle) or die("Error in select database {$config["database"]}");
//Your Query
$query = "SELECT * FROM your_table";
//Executing query
$result = mssql_query($query);
#$numRows = mssql_num_rows($result);
#echo "{$numRows} rows";
//Showing results
while($row = mssql_fetch_array($result)){
echo "YOUR RESULT {$row["your_table_field"]}";
}
//Closing conection
mssql_close($dbhandle);
?>
Send me a feedback to know what happened!