通过ODBC连接的SQL SERVER实例一 
<? 
$connection = odbc_connect("mydata","userid","passwd"); 
$query = "select * from tab_1 where  no>0" ; 
$result = odbc_do($connection,$query) ; 
print "<table 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><input  size='7' type='text'  name=text$i value=$temp>"; 
} 
} 
print "</table>"; 
odbc_close($connection); 
?>  
相关文章
最新评论
 站长推荐 正版Windows 10 家庭/专业版,操作系统限时抢购[¥1088→¥248] 站长推荐 Microsoft Office 2016/2019/365 正版最低价仅需[ ¥148元]
大家感兴趣的内容
最近更新的内容
常用在线小工具
