I will have code similar to:
Code: Select all
$result = mysql_query("SELECT * FROM photos WHERE global_id='$_GET['id']'") or die(mysql_error());
$num_rows = mysql_num_rows($result);
$row = mysql_fetch_array($result);I assume it will start with something like:
Code: Select all
$i = 0;
while($i < $num_rows) {
//some code here to display first <tr> then 4 <td></td>'s, then the end </tr>, then repeat
}Thanks in advance, I googled and found nothing.
-Steve