Old stuff/old_sites/www/include/perso/presentation.php
(Deskargatu)
<?
if (empty($_POST['contenu']))
{
aide();
$query = "SELECT description FROM mp_membres WHERE pseudo='".$nick."'";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_assoc($result);
echo
"<form action=\"index.php?page=perso&id=presentation\" method=\"post\">
<p><textarea rows=\"10\" cols=\"80\" name=\"contenu\">".$row{'description'}."</textarea></p>
<p><input type=\"submit\" value=\"Valider\" /></p>
";
}
else {
$query = "UPDATE mp_membres set description='".text2html($_POST['contenu'])."' WHERE pseudo='".$nick."'";
mysql_query($query) or die(mysql_error());
echo "<p>Le changement effectuée a été pris en compte.</p>
<p><a href=\"index.php?page=perso\">Retour à la page perso</a></p>";
}
?>