"; }
else {
if ($chemin[2] == "modif" && !empty($chemin[3]))
{
if ($_POST['action'] == "Supprimer")
{
$query = "DELETE FROM membres WHERE pseudo='$chemin[3]'";
mysql_query($query) or die(mysql_error());
echo "
Edition des parametres de: $chemin[3]
Supprime $chemin[3]
";
}
else {
if (empty($_POST['pseudo']))
{
echo "
Edition des parametres de: $chemin[3]
";
$query = "SELECT * FROM membres WHERE pseudo='$chemin[3]'";
$result = mysql_query($query) or die("ERREUR: ".mysql_error());
$row = mysql_fetch_array($result);
echo " ";
echo "
";
}
else
{
unset($pass);
$pseudo = $_POST['pseudo'];
if ($_POST['mdp']) { $pass = md5($_POST['mdp']); }
$email = $_POST['email'];
$sexe = $_POST['sexe'];
$signature = $_POST['signature'];
$site = $_POST['site'];
$acc = $_POST['acc'];
if (!empty($pass)) {
$query = "UPDATE membres SET pseudo='$pseudo',userpass='$pass',email='$email',sexe='$sexe',signature='$signature',site='$site',axx='$acc' WHERE pseudo='$chemin[3]'";
}
else {
$query = "UPDATE membres SET pseudo='$pseudo',email='$email',sexe='$sexe',signature='$signature',site='$site',axx='$acc' WHERE pseudo='$chemin[3]'";
}
mysql_query($query) or die("ERROR: ".mysql_error()." $query");
echo "
UPDATE du compte effectue
Mise a jour du compte effectuee:
Pseudo: $pseudo
email: $email
sexe: $sexe
signature: $signature
site: $site
Axx: $acc
";
}
}
}
else
{
echo "
Order by axx,pseudo
";
$query = "SELECT pseudo,email,site,axx,phpsessid FROM membres ORDER BY axx,pseudo ASC";
$result = mysql_query($query) or die("ERREUR: ".mysql_error());
while ($row = mysql_fetch_array($result))
{
echo "