<?php$db=mysql_connect($servname,$sqlservname,$sqlservpws) or die("数据库连接失败");
mysql_select_db($sqlname,$db);global $a,$b;
$a=array();
$b=array(); $sql = "select * from biao ";
$result =mysql_query($sql);
echo "<table width=\"760\" style=\"table-layout:fixed;\" align=center border=1>\n";
echo "<tr><th width=60 >序号</th><th width=60 >订单号</th> </tr>\n";
while($rs =mysql_fetch_array($result))
{
global $a,$b;
$a[]=$rs[0];
printf("<tr><td style=\"word-break : break-all; overflow:hidden; \">%s</td><td style=\"word-break : break-all; overflow:hidden; \">%s</td></tr>",$rs[0],$rs[1]);
?>
<?php
}echo "</table><br />";
echo $a[0];
?>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货