1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
| <?
session_start();
/*
si la variable de session login n'existe pas cela siginifie que le visiteur
n'a pas de session ouverte, il n'est donc pas logué ni autorisé à
acceder à l'espace membres
*/
if(!isset($_SESSION['login'])) {
echo 'Vous n\'êtes pas autorisé à acceder à cette zone';
exit;
}
?>
<span class="sous_menu"><a href="index.php">Retour</a></span><br />
<?php
$conn= mysql_connect("localhost", "login", "pass");
mysql_select_db("nom de la table");
$reponse = mysql_query("SELECT * FROM `notes`",$conn);
?>
<table width="333" border="1" align="center" cellpadding="5" cellspacing="0">
<?php ($row= mysql_fetch_assoc($reponse));?>
<tr>
<th width="172" scope="row">Mathématique</th>
<td width="145"><div align="center"><?php echo $row['mathematique']; ?></div></td>
</tr>
<tr>
<th scope="row">Français</th>
<td><div align="center"><?php echo $row['francais']; ?></div></td>
</tr>
<tr>
<th scope="row">Histoire/Géographie</th>
<td><div align="center"><?php echo $row['histoire']; ?></div></td>
</tr>
<tr>
<th scope="row">Langue Vivante </th>
<td><div align="center"><?php echo $row['lv']; ?></div></td>
</tr>
<tr>
<th scope="row">SVT</th>
<td><div align="center"><?php echo $row['svt']; ?></div></td>
</tr>
<tr>
<th scope="row">Physique/Chimi</th>
<td><div align="center"><?php echo $row['physique']; ?></div></td>
</tr>
<tr>
<th scope="row">Technologie</th>
<td><div align="center"><?php echo $row['techno']; ?></div></td>
</tr>
<tr>
<th scope="row">Pratique</th>
<td><div align="center"><?php echo $row['pratique']; ?></div></td>
</tr>
<tr>
<th scope="row">SES</th>
<td><div align="center"><?php echo $row['ses']; ?></div></td>
</tr>
<tr>
<th scope="row">Philosophie</th>
<td><div align="center"><?php echo $row['philo']; ?></div></td>
</tr>
<tr>
<th scope="row">Management</th>
<td><div align="center"><?php echo $row['manag']; ?></div></td>
</tr>
<tr>
<th scope="row">ECO/DR</th>
<td><div align="center"><?php echo $row['eco']; ?></div></td>
</tr>
<tr>
<th scope="row">Autre</th>
<td><div align="center"><?php echo $row['autre']; ?></div></td>
</tr>
</table> |
Partager