怎么不能循环输出?()smarttemplate 劳叨请进
主程序:
$text=array();
while ($arr=mysql_fetch_assoc($result["res"]))
{
$text=array(
"examID"=>$arr["id"],
"examName"=>$arr["examName"],
"examType"=>$arr["examType"],
"examCY"=>$arr["examCY"],
"examAdd"=>$arr["examAdd"],
"examDate"=>$arr["examDate"]);
}
$ksgl->assign("row",$text);
$ksgl->output();
<!-- BEGIN row -->
<tr id=tr{examID} onmouseover=changeColor1('tr{examID}') onmouseout=changeColor2('tr{examID}') onclick=showBook('{examID}') bgcolor=#ddeeff>
<td align=center class=f2 width=3% id=td{examID}>
<img src=images/green_arrow.gif>
</td>
<td align=left class=f2 width=16% valign=bottom>{examName}</td>
<td align=center class=f2 width=19%>{examType}</td>
<td align=center class=f2 width=19%>{examCY}</td>
<td align=center class=f2 width=19%>{examAdd}</td>
<td align=center class=f2 width=11%>{examDate}</td>
<td align=center class=f2 width=5%><img src=images/delete1.gif height=17 align=bottom style=cursor:hand onclick=deleteExam('{examID}')></td>
</tr>
<!-- END row -->
为什么只输出了一行,没有循环的?