欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

通过ODBC连接的SQL SERVER实例_PHP教程

程序员文章站 2022-04-12 13:41:20
...
通过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 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...