I have a table in my mysql db that contains path for images.
I want to display thumbnails of this images.
Can you tell me what is the best solution for that.
This is how i display the full size images from db:
<?php for($i=1; $i<=5; $i++)
{$query = mysql_query("SELECT * FROM photos WHERE product_id='".$i."'");
$row = mysql_fetch_array($query);
$t="img/";
$file = $t .$row[1];
echo "<li><a href=\"#\"><img src = " . $file . "></a></li>";
} ?>
You can use this http://mightystuff.net/php-thumbnail-script