require("headerAWItop.html"); ?> require("headerAWIbottom.html"); ?> require '/home/artworks/top.php'; ?> if (!$code) $code=1; $sql="SELECT *, if (pick='0','No','Yes'), if (interior='0','No','Yes') FROM catalogue, artist, suite, medium WHERE catID=$code AND catalogue.artistID=artist.artistID AND catalogue.suiteID=suite.suiteID AND medium.refID=catalogue.catagory"; # print "$sql
";
$result = mysql_query($sql,$db);
$row = mysql_fetch_row($result);
$size=getimagesize("/home/artworks/www/artworksgallery.com/images/$row[0].jpg");
// scale the image
$width=$size[0];
$height=$size[1];
#print "$width x $height
";
if ($width>720) { // set max width of image to 720 and scale height appropriately
$width=720;
$height=round(720 * $size[1] / $size[0]);
}
?>
|