手机
当前位置:查字典教程网 >编程开发 >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中memcache 基本操作实例

PHP的类 功能齐全的发送邮件类

PHP中预定义的6种接口介绍

通过html表格发电子邮件

php遍历CSV类实例

杏林同学录(八)

第八节 访问方式 [8]

php备份数据库类分享

如何对PHP程序中的常见漏洞进行攻击(上)

php&java(三)

精品推荐
分类导航