Hello,
I am trying to display the results from a mysql query in a three column table (regular HTML). The catch is...I would like the top right cell (row 1, column3) to be static and display other HTML.
Picture this:
[result1][result2][CONTENT]
[result3][result4][result5]
[result6][result7][result8]
...etc...
Here is the code i have so far, although I can't get it to produce that static cell...
Anyone have any ideas?
$row = 0;
$column = 0;
echo "<table>";
while($row = mysql_fetch_assoc($result)) {
if ($column == 0) {echo "<tr>";}
if (($column == 2) && ($row == 0)){echo "<td>content</td></tr><tr>";}
echo "<td>".$row['business']."</td>";
$column++;
if ($column >= 3) {
$row++;
echo "</tr>";
$column = 0;
}
}
echo "</table>";
thanks in advance!