My current connection and echo code is as follwed:
<?php
$myServer = "Server_Name";
$myUser = "User";
$myPass = "Pass";
$myDB = "DB_Name";
//connection to the database
$dbhandle = sqlsrv_connect($myServer, $myUser, $myPass)
or die("Couldn't connect to SQL Server on $myServer");
//select a database to work with
$selected = mssql_select_db($myDB, $dbhandle)
or die("Couldn't open database $myDB");
//declare the SQL statement that will query the database
$query = "SELECT col1, col3, col4, col5, col6, ";
$query .= "FROM dbo.Quotes ";
//execute the SQL query and return records
$result = mssql_query($query)
or die('A error occured: ' . mysql_error());
//Show results in table
$o = '<table id="myTable">
<thead>
<tr>
<th>Col 1</th>
<th>Col 2</th>
<th>Col 2</th>
<th>Col 2</th>
<th>Col 2</th>
</tr>
</thead><tbody>';
while ( $record = mssql_fetch_array($result) )
{
$o .= '<tr><td>'.$record ['col1'].'</td><td>'.$record ['col3'].'</td></tr>' .$record ['col4'].'</td></tr>' .$record ['col5'].'</td></tr>' .$record ['col6'].'</td></tr>';
}
//free result set memory
mssql_free_result($result);
//close the connection
mssql_close($dbhandle);
?>