我有一些代碼,從數據庫中取出我的結果,然後將它們包裝到一個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