21,891
社区成员
发帖
与我相关
我的任务
分享while (list($id,$code,$name)=mssql_fetch_row($rs)){
$j++;
$rs_id[$j]=$id;
$rs_code[$j]=$code;
$rs_name[$j]=$name;
}
$strResult= " <tr height=30> <th>序号 </th> <th>编码 </th> <th>名称 </th> </tr>";
for ($i=1;$i <=$10;$i++){
$strResult= $strResult." <tr height=25> <td align=center>".$rs_id[$i]."</td> <td align=left>".$rs_code[$i]."</td> <td align=left>".$rs_name[$i]."</td> </tr>";
}
echo $strResult;