作者:雨蝶馨菲_484 | 来源:互联网 | 2018-03-24 07:16
php代码:
Connection to DB via ODBC failed: ";
echo odbc_errormsg ($conn );
echo "\n";
}
$sql = "SELECT 1 as test";
$rs = odbc_exec($conn,$sql);
echo "
";
echo "Test |
";
while (odbc_fetch_row($rs))
{
$result = odbc_result($rs,"test");
echo "$result |
";
}
odbc_close($conn);
echo "
";
?>