include('library/connexion.php') ; include('library/fonction.php') ; $SQL='SELECT `id` as id,titre_'.$lng.' as title,content_'.$lng.' as content, `picture` as pic, header_'.$lng.' as `headerD`, date_aff FROM mavil_news where id= '.$idpage; $Tnews = mysql_query($SQL, $cnx)or die(mysql_error()); if(mysql_num_rows($Tnews)>0){ $Rnews=mysql_fetch_object($Tnews); $id=$Rnews->id; $title=$Rnews->title; $content=$Rnews->content; $date=$Rnews->date_aff; $header=$Rnews->headerD; $pic=$Rnews->pic; } mysql_free_result($Tnews); ?>