Home > Backend Development > PHP Tutorial > 通过ODBC连接的SQL SERVER实例_php基础

通过ODBC连接的SQL SERVER实例_php基础

WBOY
Release: 2016-05-17 09:48:44
Original
945 people have browsed it

通过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);
?>  
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template