I think a IF loop is needed, but i couldn't seem to any to work
The variable im trying to displays is
Code: Select all
<?php echo $row_blobby['previewpath']; ?>Hope, someone can help or guide me in the correct direction. Thanks!
Moderator: General Moderators
Code: Select all
<?php echo $row_blobby['previewpath']; ?>Code: Select all
<?php
print "<table>";
for ($i = 0; $i <= 5; $i++) {
if ($i % 5 == 0) {
print "<tr>";
}
print "<td>" . $row_blobby['previewpath'] . "</td>";
if ($i % 5 == 5) {
print "</tr>";
}
}
print "</table>";
?>Code: Select all
<?php
print "<table>";
for ($i = 0; $i <= 5; $i++) {
if ($i % 5 == 0) {
print "<tr>";
}
print '<td><img src="http://'.$row_blobby['previewpath'].'" /></td>';
if ($i % 5 == 5) {
print "</tr>";
}
}
print "</table>";
?>Code: Select all
<?php
print "<table>";
for ($i = 0; $i <= 4; $i++) {
if ($i % 5 == 0) {
print "<tr>";
}
print '<td><img src="http://'.$row_blobby['previewpath'].'" /></td>';
if ($i % 5 == 5) {
print "</tr>";
}
}
print "</table>";
?>