'' OR pages_generique IS NOT NULL"; $generique = mysql_query( $query_generique, $mysql )or die( mysql_error() ); $row_generique = mysql_fetch_assoc( $generique ); $totalRows_generique = mysql_num_rows( $generique ); do { $result = mysql_query( "SHOW COLUMNS FROM pages" ); while ( $row = mysql_fetch_assoc( $result ) ) { $CHAMP = $row[ 'Field' ]; $NOM_VARIABLE = $row_generique[ 'pages_generique' ] . "_" . $row[ 'Field' ]; $$NOM_VARIABLE = $row_generique[ $CHAMP ]; } } while ( $row_generique = mysql_fetch_assoc( $generique ) ); //RECUPERATION DE TOUS LES PARAMETTRES mysql_select_db( $database_mysql, $mysql ); $query_parametres = "SELECT * FROM parametres"; $parametres = mysql_query( $query_parametres, $mysql )or die( mysql_error() ); $row_parametres = mysql_fetch_assoc( $parametres ); $totalRows_parametres = mysql_num_rows( $parametres ); do { $$row_parametres[ 'param_nom' ] = $row_parametres[ 'param_contenu' ]; } while ( $row_parametres = mysql_fetch_assoc( $parametres ) ); //FIN RECUPERATION DE TOUS LES PARAMETTRES //FIN REQUETES BASE DE DONNEES--------------------------------------------------------------------------------------------- //Récupération des informations META TAGS pour le référencement include( './includes/meta.php' ); //Récuperation du nom de la page générique si lien direct if ( isset( $_POST[ 'page_generique' ] ) ) { $page_generique = $_POST[ 'page_generique' ]; } elseif ( isset( $_GET[ 'page_generique' ] ) ) { $page_generique = $_GET[ 'page_generique' ]; } elseif ( isset( $_GET[ 'PAGE_GENERIQUE' ] ) ) { $page_generique = $_GET[ 'PAGE_GENERIQUE' ]; } elseif ( isset( $_POST[ 'PAGE_GENERIQUE' ] ) ) { $page_generique = $_POST[ 'PAGE_GENERIQUE' ]; } ?> <?php echo $titre ?>