Album photo
if($ID_album=="") { $sql="select photos.ID_photo,photos.photo from photos,album where photos.ID_album=album.ID_album order by photos.ID_photo DESC limit 12"; $titre="Derniers ajouts"; } else { if($limit=="") $limit=0; $sql="select ID_photo,photo from photos where ID_album='$ID_album' order by ID_photo limit $limit,16"; $query4=mysql_query("select nom from album where ID_album='$ID_album'",$succ); list($titre)=mysql_fetch_array($query4); } echo "$titre
"; $query2=mysql_query($sql,$succ); if(mysql_numrows($query2)>0){ $i=0; ?>
} if($ID_album!=""){ ?>
if($ID_album=="") { $sql="select photos.ID_photo,photos.photo from photos,album where photos.ID_album=album.ID_album order by photos.ID_photo DESC limit 12"; $titre="Derniers ajouts"; } else { if($limit=="") $limit=0; $sql="select ID_photo,photo from photos where ID_album='$ID_album' order by ID_photo limit $limit,16"; $query4=mysql_query("select nom from album where ID_album='$ID_album'",$succ); list($titre)=mysql_fetch_array($query4); } echo "$titre
"; $query2=mysql_query($sql,$succ); if(mysql_numrows($query2)>0){ $i=0; ?>
} if($ID_album!=""){ ?>