fairly simple, here is some example code:
$sqlServer = 'SQL.sqlsvr.net';
$sqlUser = 'ADMIN';
$sqlPass = 'pwd';
$db = 'attaincms';
// Make SQL server connection
$s = mssql_connect($sqlServer, $sqlUser, $sqlPass) or die ("Couldn't connect to SQL Server on $sqlServer");
// Open Databse
$d = mssql_select_db($db, $s) or die ("Couldn't open database $db");
$query = 'SELECT * FROM Account WHERE Login = \'' . $username . '\'';
// Store values in an array.
$result = mssql_query($query);
// Store # of rows
$numRows = mssql_num_rows($result);
echo '<h1>' . $numRows . ' Row' . ($numRows == 1 ? '' : 's') . ' Returned </h1>';
while($row = mssql_fetch_array($result))
{
echo '<li>' . $row['Password'] . '</li>';
}
you need to make sure that the linux server has the proper libraries etc installed, there is a .dll file that needs to be on there as well... check out http://us3.php.net/manual/en/ref.mssql.php for complete list of requirements.
cheers,
:xbones: :xbones: :xbones: :xbones: