for($i=0;$i< 28;$i++){
$row= mysql_fetch_object($result);
if ($row== "")
break;
$top = " ".$row->user."<br>\n";
$con=str_replace("[COMPANYTOP]",$top,$con);
}为什么只能显示一行数据, 怎样才能把数据全部显示出来
$row= mysql_fetch_object($result);
if ($row== "")
break;
$top = " ".$row->user."<br>\n";
$con=str_replace("[COMPANYTOP]",$top,$con);
}为什么只能显示一行数据, 怎样才能把数据全部显示出来
for($i=0;$i< 28;$i++){
while($row= mysql_fetch_array($result)){
$top = " ".$row->user."<br>\n";
$con=str_replace("[COMPANYTOP]",$top,$con);
}
}
请给出"../mod/index/index.html"的内容如果里面有一个[COMPANYTOP],那么第一次替换后就没有了
如果有多个[COMPANYTOP],那么在第一次替换时也被全部替换了