当前位置:Gxlcms > PHP教程 > 通过ODBC连接的SQLSERVER实例_PHP教程

通过ODBC连接的SQLSERVER实例_PHP教程

时间:2021-07-01 10:21:17 帮助过:1人阅读

通过ODBC连接的SQL SERVER实例一

$connection = odbc_connect("mydata","userid","passwd");
$query = "select * from tab_1 where no>0" ;
$result = odbc_do($connection,$query) ;
print "";
while(odbc_fetch_into($result,&$fields))
{
print "\n";
for ($i = 21; $i <= 31 ; $i ++) {
print "
";
}
}
print "
";
odbc_close($connection);
?>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/315329.htmlTechArticle通过ODBC连接的SQL SERVER实例一 ? $connection = odbc_connect(mydata,userid,passwd); $query = select * from tab_1 whereno0 ; $result = odbc_do($connection,$query) ; print tabl...

人气教程排行