Hello,
After uploading picture into a certain folder and record the filename in the database, I would like to print the database and the picture out.
Here is the code:
<?php
$i=0;
while($data = mysql_fetch_array($result)){
$result2=($i%2)?'#DFA09D':'white';
echo "<tr bgcolor='$result2'> ";
echo "<td>".$data['id']."</td>";
echo "<td>".$data['judul']."</td>";
echo "<td><img src='../photos/".$data['image']."'></td>";
echo "<td><a href='input_image.php?mode=edit&id=".$data['id']."'>Edit |<a href='input_image.php?mode=delete&id=".$data['id']."'>Delete</a></td>";
echo "</tr>";
$i++;
}
?>
One problem, the picture that I uploaded to the directory is way too large to be printed; I would like to turn it into thumbnail. Some pictures, are just right but they still need to be turn into thumbnail in the printed out database table.
How to do so?