ini_set(‘display_errors’, true) ;
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; } ?>