欢迎来到福编程网,本站提供各种互联网专业知识!

通过ODBC连接的SQL SERVER实例

发布时间:2006-10-09 作者: 来源:转载
通过ODBC连接的SQLSERVER实例一
通过ODBC连接的SQL SERVER实例一

$connection = odbc_connect("mydata","userid","passwd");

$query = "select * from tab_1 whereno>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);

?>

相关推荐