From ac2c0ae5d4bee72b809de3c3b294c77306e84d41 Mon Sep 17 00:00:00 2001 From: henyxia Date: Tue, 10 Feb 2015 22:53:33 +0100 Subject: [PATCH] UTF8 should be better with news --- news.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/news.php b/news.php index 88366b2..bc3111c 100644 --- a/news.php +++ b/news.php @@ -14,7 +14,7 @@ if(!mysql_select_db('crep', $link)){ echo 'Selection de la base de donnees impossible'; exit; } - +mysql_query("SET NAMES 'utf8'"); $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;"; $resultat = mysql_query($requete); -- libgit2 0.21.2