Chape
$photosSQL = "SELECT gallery_id, image, descriptionphoto FROM news_gallery_images WHERE gallery_id = ".$ID." and entity_id=1 Order By orderPhoto " ;
$photosRS = mysql_query($photosSQL) or die(mysql_error());
$countPhoto = mysql_num_rows($photosRS);
while ($photosRow = mysql_fetch_array($photosRS)) {
$varPhoto ='News_Images/'.$photosRow["gallery_id"].'/'.$photosRow["image"];
list($width, $height, $type, $attr) = getimagesize($varPhoto);
echo '
';
}
?>
Retour