<?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];
?>