<div id="endtext"> <div id="a_l_1" class="cad"></div> 通过ODBC连接的SQL SERVER实例一 <br> <br> <br> $connection = odbc_connect("mydata","userid","passwd"); <br> $query = "select * from tab_1 where no>0" ; <br> $result = odbc_do($connection,$query) ; <br> PRint "<table border="1" width="100%" id="tab1" cellpadding="1" cellspacing="0" bordercolorlight="#008000" bordercolordark="#008000">"; <br> while(odbc_fetch_into($result,&$fields)) <br> { <br> print "<tr>\n"; <br> for ($i = 21; $i print "<td width="6%"> <input style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #ffffff 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; BORDER-BOTTOM: #ffffff 1px solid; COLOR: #000000; FONT-SIZE: 9pt" type="text" value="$temp">"; <br> } <br> } <br> print "</td> </tr> </table>"; <br> odbc_close($connection); <br> ?> <div class="bdlikebutton"></div> <div id="a_l_2" class="ad_b6"></div> </div> <div class="clear"></div>