include ("top-articles.php"); #error_reporting(0); $page=""; if(isset($_GET['asso_id'])){ $asso_id=$_GET['asso_id']; #echo $asso_id; } if(isset($_GET['order'])){ $order=$_GET['order']; }else{ $order="id DESC"; } #echo $order; if(isset($_GET['email'])){ $email=$_GET['email']; #echo $email; } if(isset($email)){ $sql2="SELECT *,UNIX_TIMESTAMP(mise_en_ligne) as madate from news WHERE code ='1' AND email = '$email' ORDER by $order "; $result = mysqli_query($mysqli,$sql2); $total=mysqli_num_rows($result); while ($row7=mysqli_fetch_assoc($result)) { $id=$row7['id']; $date_mise_en_ligne=$row7['mise_en_ligne']; $date_mise_en_ligne_french=mysql2french($row7['mise_en_ligne']); $mois=mysql2frenchmonth($row7['mise_en_ligne']); $porteparole=$row7['porteparole']; $hits=$row7['hits']; $partages=$row7['partages']; $friendly_url=$row7['friendly_url'] . "-".$id; $title=$row7['title']; $title=trim($title); $title=stripslashes($title); $title=substr($title,0,110); $page.= "\n