From 10963869b87b52009d7be4147cc0ec1634ba8909 Mon Sep 17 00:00:00 2001 From: Jean Wasilewski Date: Thu, 5 Feb 2015 16:47:27 +0100 Subject: [PATCH] Added contact and fixed adress --- school.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/school.php b/school.php index e02b860..6b79bb8 100644 --- a/school.php +++ b/school.php @@ -26,7 +26,7 @@ if(!mysql_select_db('crep', $link)) exit; } -$requete = "SELECT DISTINCT `nom`, `circonscription`, `adresse`, `enseignant` FROM `school` ORDER BY nom ASC"; +$requete = "SELECT DISTINCT `nom`, `circonscription`, `adresse`, `enseignant`, `contact` FROM `school` ORDER BY nom ASC"; $resultat = mysql_query($requete); while ($row = mysql_fetch_assoc($resultat)) @@ -39,12 +39,15 @@ while ($row = mysql_fetch_assoc($resultat)) echo '

'.$row['circonscription'].'

'; echo ''; echo ''; - echo '

'.$row['addresse'].'

'; + echo '

'.$row['adresse'].'

'; echo ''; echo ''; echo '

'.$row['enseignant'].'

'; echo ''; - echo ''; + echo ''; + echo '

'.$row['contact'].'

'; + echo ''; +echo ''; } mysql_close($link); -- libgit2 0.21.2