projecttool8
-
Posts
2 -
Joined
-
Last visited
Posts posted by projecttool8
-
-
So, I currently have a script (in beta mode, only works when the sun shines), that can upload an image and store directly in a mysql database (using the BLOB data type); the script is also able to retrieve the BLOB data and display them vertically on the page; I actually need to dsiplay them horizontally across the page instead. So currently the retrieved images are printed in this format:
1
2
3
4
5
6
7
8
and I need it to print this way:
1 2 3 4
5 6 7 8
sounds like a for loop somewhere... any takers on how to implement the feature?
Displaying BLOB images horizontally from mysql
in PHP Coding Help
Posted
Thank you for the tip. A for loop did actually work... This prints the result/format that was required:
<html>
<body>
<table border="1"><tr>
<?php
for ($number = 1; $number <= 8; $number++) {
if ($number % 4 === 1){
echo '</tr>';
}
echo '<td>'.$number.'</td>';
}
?>
</tr></table>
</body>
</html>