1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| <?php
if(isset($_POST['submit']))
{
$username = htmlspecialchars(trim($_POST['username']));
$password = htmlspecialchars(trim($_POST['password']));
if($username&&$password)
{
$password = md5($password)
$conn=mysql_connect('localhost','root','');
mysql_select_db('notagest');
$log=mysql_query("SELECT * FROM users WHERE username='username' AND password='$password'");
$rows=mysql_num_rows($log)
if($rows==1)
{
echo "Bienvenue";
}else echo"Nom Utilisateur Ou Mot de Passe incorrect";
} else echo"Veuillez Saisir Tous les Champs";
}
?> |
Partager