Home  >  Article  >  Backend Development  >  SQL SERVER instance connected through ODBC_PHP tutorial

SQL SERVER instance connected through ODBC_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 16:06:45847browse

通过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...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn