小问题大送分,关于数据打印
$query="select ................"
假设有100条记录,如何打印出来?我不大懂,下面瞎写的帮忙看有啥问题???
<table>
<tr>
<th>aaa</th><th>bbb</th><th>ccc</th><th>ddd</th><th>eee</th><th>fff</th>
</tr>
<tr>
<?php
for ($i=0;$i<100;$i++)
{for ($j=0;$j<6;$j++){
?>
<td>$query[i,j]</td>
<?php
}}
?>
</tr>
</table>