echo '<table width="1588" height="178" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="336699" id="table1">';
echo ' <tr>
<td height="39" colspan="5" align="center"><span class="STYLE7">题目</span></td>';
用echo输出表格
foreach ($line as $record) {
echo "<td>$record</td>"; 在表格中显示数据
}
echo ' <tr>
<td height="39" colspan="5" align="center"><span class="STYLE7">题目</span></td>';
用echo输出表格
foreach ($line as $record) {
echo "<td>$record</td>"; 在表格中显示数据
}
解决方案 »
- 登陆成功 Warning: Cannot modify header information - headers already sent by (output
- PHP include问题,与ASP的不一样?
- 求一个正则表达式
- MYSQL数据库查询 库存短缺查询!
- 再发一个这两天写的生成缩略图的CLASS
- 求救:MySQL数据导入导出问题!!!我发现MySQL里的中文不能用直接的中文表示,导出之后还是用什么� 表示,请问怎样才能正常导出;
- 基于文件的用户注册脚本,很简单的,帮帮忙
- 请高手帮忙,php用socket和smtp发送邮件,smtp服务器需认证。急急急急急
- 怎样用文本编一个点击图片的统计。
- 紧急!!!!!!
- 关于 php SAPI 和APACHE的关系,哪位给我理理清楚
- 有没有做好的HTML UI库?非EXTJS等。
类似2楼的。
foreach ($array as $value) {
echo " <td>$value</td>"; 在表格中显示数据
}
$sql=".................";
$res=mysql_query($sql);
$len=mysql_fields_num($res);
while($row=mysql_fetch_row($res)){
echo '<tr>';
for($i =0;$i<$len;$i++){
echo '<td>$row[$i]</td>'; }
echo '</tr>';
}
我经常用这个!