我有一些代码,从数据库中取出我的结果,然后将它们包装到一个div中,以便每个结果都位于各个框中。嵌套在另一个嵌套结果
虽然结果很好,但我遇到的问题是这些盒子在彼此内部重复,而不是合成到彼此列出的各个盒子中。下面
是我的PHP代码
$sVisit_Id='';
while ($row = mysql_fetch_array ($result)) {
$url1 = $row['url1'];
if ($row['visit_id']!=$sVisit_Id)
{
echo '</table>';
?> <div class="box1095"><?php
echo '<table><tr><td class="test" width="350px;"><strong>'.$referrer.'</strong><br /></td><td>'.$search_term.'</td></tr><table>';
$sVisit_Id=$row['visit_id'];
echo '<tr bgcolor="#333" height=30px"><td width="200px">Date/Time</td><td width="750px">Webpage</td><td width="150px"></td></tr>';
}
echo '<tr class="active" bgcolor="" onMouseOver="this.bgColor="gold";" onMouseOut="this.bg"#222222";"><td width="200px" border="">'.$row['timedate'].
'</td><td width="750px" border="">'. $row['url1'].'</td><td width="15px" align="right" border="">'. "<a href=". $url1 ." class=''> " ?><img src="images/go_button.fw.png" width="100" height="30" alt="GO" target="_blank"/><?php "</a>" .'</td></tr>';
} ?></div><?php
echo '</table>';
下面的图像示出了结果的屏幕截图。
任何建议或指导,将不胜感激。
感谢
'“。'“;'你是不是呼应这一行的,所以你的细胞中添加下一个之前从来没有接近 – David
''可在年底,向右滚动 –
@ RecoveringSince2003他们没有回应,只是宣称 – David