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 | 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 | 30 | $resultat = mysql_query($requete); |
31 | 31 | |
32 | 32 | while ($row = mysql_fetch_assoc($resultat)) |
... | ... | @@ -39,12 +39,15 @@ while ($row = mysql_fetch_assoc($resultat)) |
39 | 39 | echo '<p>'.$row['circonscription'].'</p>'; |
40 | 40 | echo '</td>'; |
41 | 41 | echo '<td>'; |
42 | - echo '<p>'.$row['addresse'].'</p>'; | |
42 | + echo '<p>'.$row['adresse'].'</p>'; | |
43 | 43 | echo '</td>'; |
44 | 44 | echo '<td>'; |
45 | 45 | echo '<p>'.$row['enseignant'].'</p>'; |
46 | 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 | 53 | mysql_close($link); | ... | ... |