this works:
<?php
while ($data = mysql_fetch_object($result)) { ?>
<img src="<?php print 'thumbs/'.$data->thumb ;?>" alt="" /><br />
<?php
}
?>
So I try to put it in a table - but it doesn't print anything:
<?php
print "<table border=\"1\">\n";
for ($y=1; $y<=$numrows; $y++ ) {
while ($data = mysql_fetch_object($result)) {
print "<td>\n<tr>\n"; ?>
<img src="<?php print 'thumbs/'.$data->thumb ;?>" alt="" /><br />
<?php print "</td>\n</tr>\n";
}
}
print "</table>\n";
?>
Why doesn't that work?