手机
当前位置:查字典教程网 >编程开发 >php教程 >通过ODBC连接的SQL SERVER实例
通过ODBC连接的SQL SERVER实例
摘要:通过ODBC连接的SQLSERVER实例一

通过ODBC连接的SQL SERVER实例一

<?

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

$query = "select * from tab_1 whereno>0" ;

$result = odbc_do($connection,$query) ;

print "<table border='1' width='100%' id='tab1' cellPadding='1' cellSpacing='0'align='top' bordercolorlight='#008000' bordercolordark='#008000'>";

while(odbc_fetch_into($result,&$fields))

{

print "<tr>n";

for ($i = 21; $i <= 31 ; $i ++){

print "<td width='6%'><inputsize='7' type='text'name=text$i value=$temp>";

}

}

print "</table>";

odbc_close($connection);

?>

【通过ODBC连接的SQL SERVER实例】相关文章:

在线竞拍系统的PHP实现框架(二)

php基于curl扩展制作跨平台的restfule 接口

第八节 访问方式 [8]

PHP实现的购物车类实例

杏林同学录(八)

php使用cookie实现记住用户名和密码实现代码

php注入实例

用PHP编程开发“虚拟域名”系统

通过html表格发电子邮件

PHP脚本的10个技巧(5)

精品推荐
分类导航