Commit ac2c0ae5d4bee72b809de3c3b294c77306e84d41

Authored by henyxia
1 parent 54b6ba84

UTF8 should be better with news

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
@@ -14,7 +14,7 @@ if(!mysql_select_db('crep', $link)){ @@ -14,7 +14,7 @@ if(!mysql_select_db('crep', $link)){
14 echo 'Selection de la base de donnees impossible'; 14 echo 'Selection de la base de donnees impossible';
15 exit; 15 exit;
16 } 16 }
17 - 17 +mysql_query("SET NAMES 'utf8'");
18 $requete = "select news.pk as pk, DATE_FORMAT(created,'%e-%m-%Y') AS created, title, content, users.realname as userName from news, users where news.fk_author=users.pk;"; 18 $requete = "select news.pk as pk, DATE_FORMAT(created,'%e-%m-%Y') AS created, title, content, users.realname as userName from news, users where news.fk_author=users.pk;";
19 $resultat = mysql_query($requete); 19 $resultat = mysql_query($requete);
20 20