所以我显示了结果,只有他们会在网页的1列中显示。我希望它们显示在5列
中继承我的代码
$query = "SELECT * FROM mytable LIMIT 5";
$result = mysql_query($query);
echo "<table>";
while($row = mysql_fetch_array($result)){
echo "
<table width='100%' style='padding-right:50px; padding-left: 50px;'>
<td><img id='dvdCovers' src='". $row['FIELD4'] ."'/>
<br>
<a id='tcMain'>". $row['FIELD1'] ." <a> ". $row['FIELD2'] ."</tc>
<tr>
</table>
";
答案 0 :(得分:0)
$query = "SELECT * FROM mytable LIMIT 5";
$result = mysql_query($query);
echo " <table width='100%' style='padding-right:50px; padding-left: 50px;'>";
while($row = mysql_fetch_array($result)){
echo "<tr>
<td><img id='dvdCovers' src='". $row['FIELD4'] ."'/></td>
<td><a id='tcMain'>". $row['FIELD1'] ." <a></td>
<td> ". $row['FIELD2'] ."</td></tr>";
}
echo "</table>";