$nb_ligne = 3; $nb_col = 2; $nb_max_par_page = $nb_ligne*$nb_col; $no_max = $nb_max_par_page; if ( !isset($_GET[p]) || $_GET[p] <= 0 || $_GET[p] == '') { $p = 1; $no_min = 0; } else { $p = $_GET[p]; $no_min = $_GET[no_min]; } $limit = "LIMIT $no_min, $no_max"; $fichier_php = "photos.php"; $param = ""; ////////////////////////////////////////////////////////////////////////////////////////// $reqPhotosTs = "SELECT * FROM photos ORDER BY id_photos DESC"; $rsPhotosTs = mysql_query ( $reqPhotosTs ); $nbRech_trouves = mysql_num_rows ( $rsPhotosTs); $reqPhotos = "SELECT * FROM photos ORDER BY date_ins DESC, id_photos DESC $limit"; $rsPhotos = mysql_query ( $reqPhotos ); ?> if ( $i == 1 ) { echo ""; } // affichage des VO EN LIGNE if ( $i <= $nb_col ) { ?> if ( $i == $nb_col || $i == $nb_max_par_page || $photo_no == $nb_max_par_page ) { $i = 0; echo ""; } $cpt++; } ?>
= $H ) { $taille=" width='$Wsmall' "; } else { $taille=" height='$Hsmall' "; } ?>