Espace de partage nouveau fichier

ini_set(‘display_errors’, true) ;
echo(‘

‘);

if($_GET[‘err’]== »1″){
echo(‘Veuillez saisir les trois champs ci-dessous’);
}

echo(‘
Titre

Fichier

Catégorie

//Liste catégorie
$resCat=selectCatDlm();
while($tabCat=@mysql_fetch_array($resCat)){
echo( ».$tabCat[‘name’].’x’);
}

echo(‘


‘);
?>

<? //function include_once(‘wp-config.php’); function get_connexion() { $conn = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if (!$conn) die (« Could not connect MySQL »); mysql_select_db(DB_NAME) or die (« Could not open database »); return $conn; } function selectCatDlm(){ $conn = get_connexion(); if($conn) { $sql = « SELECT * FROM `wp_terms` where term_id in (select term_taxonomy_id from `wp_term_taxonomy` where taxonomy=’dlm_download_category’ and parent=’0′) »; $res = mysql_query($sql, $conn); } return $res; } ?>