Here is a snippet of the code I'm working with. As you can see, I'm also working with an image re-sizer. I would really like to make those images and text
clickable links(i.e. Title). Any help is appreciated!
if ($res) {
while ($newArray = mysqli_fetch_array($res, MYSQLI_ASSOC)) {
$detail = $newArray['id'];
$photo = $newArray['photo'];
$id = $newArray['title'];
$price = $newArray['price'];
list($width) = getimagesize($photo);
// set the maximum width of the image here
$maxWidth = 100;
if ($width > $maxWidth)
echo "<p><img alt=\"Image\" width=\"$maxWidth\" src=\"$photo\" />";
echo "Title:".$id." Price:".$price."<br/";