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
| <?php
require 'admin/connexion.php';
mysql_connect($mysql_host, $mysql_login, $mysql_password);
mysql_select_db($mysql_bdd);
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<title>...</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" media="screen" type="text/css" title="style" href="templates/LightBlue/style.css" />
</head>
<body>
<?php
if(isset($_SESSION['membres']))
{
if ($_POST['cond'] == on) // si existe
{
mysql_query("UPDATE membres SET cond='1' WHERE login='" . $_SESSION['membres'] . "'");
?>
<meta http-equiv="refresh" content="0; url=index.php?page=membres/membres" />
<?php
}
[...] |