Commit 10963869b87b52009d7be4147cc0ec1634ba8909
1 parent
56320b01
Added contact and fixed adress
Showing
1 changed file
with
6 additions
and
3 deletions
Show diff stats
school.php
@@ -26,7 +26,7 @@ if(!mysql_select_db('crep', $link)) | @@ -26,7 +26,7 @@ if(!mysql_select_db('crep', $link)) | ||
26 | exit; | 26 | exit; |
27 | } | 27 | } |
28 | 28 | ||
29 | -$requete = "SELECT DISTINCT `nom`, `circonscription`, `adresse`, `enseignant` FROM `school` ORDER BY nom ASC"; | 29 | +$requete = "SELECT DISTINCT `nom`, `circonscription`, `adresse`, `enseignant`, `contact` FROM `school` ORDER BY nom ASC"; |
30 | $resultat = mysql_query($requete); | 30 | $resultat = mysql_query($requete); |
31 | 31 | ||
32 | while ($row = mysql_fetch_assoc($resultat)) | 32 | while ($row = mysql_fetch_assoc($resultat)) |
@@ -39,12 +39,15 @@ while ($row = mysql_fetch_assoc($resultat)) | @@ -39,12 +39,15 @@ while ($row = mysql_fetch_assoc($resultat)) | ||
39 | echo '<p>'.$row['circonscription'].'</p>'; | 39 | echo '<p>'.$row['circonscription'].'</p>'; |
40 | echo '</td>'; | 40 | echo '</td>'; |
41 | echo '<td>'; | 41 | echo '<td>'; |
42 | - echo '<p>'.$row['addresse'].'</p>'; | 42 | + echo '<p>'.$row['adresse'].'</p>'; |
43 | echo '</td>'; | 43 | echo '</td>'; |
44 | echo '<td>'; | 44 | echo '<td>'; |
45 | echo '<p>'.$row['enseignant'].'</p>'; | 45 | echo '<p>'.$row['enseignant'].'</p>'; |
46 | echo '</td>'; | 46 | echo '</td>'; |
47 | - echo '</tr>'; | 47 | + echo '<td>'; |
48 | + echo '<p>'.$row['contact'].'</p>'; | ||
49 | + echo '</td>'; | ||
50 | +echo '</tr>'; | ||
48 | } | 51 | } |
49 | 52 | ||
50 | mysql_close($link); | 53 | mysql_close($link); |