Displaying 1 result from an estimated 1 matches for "dbselect".
Did you mean:
5bselect
2008 Nov 07
0
CEntOS-5.2 & php-mssql
...------------------------------
<?php
ini_set('display_errors',1);
error_reporting(E_ALL);
$user='dbuser';
$pass='dbpassword';
$server='calcantita';
$db='dbtest';
$conn = mssql_connect($server, $user, $pass)
or die('Connection error');
$dbselect= mssql_select_db($db, $conn)
or die('DB select error.');
$sql = 'select * from tbtest';
$result = mssql_query($sql);
while ($row = mssql_fetch_row($result)) {
var_dump($row);
}
mssql_close($conn);
?>
--------------------------------------------------------------...