Paste: gams
Author: | gams |
Mode: | php |
Date: | Tue, 22 Feb 2011 15:45:49 |
Plain Text |
<?php
$login=$_POST['login'];
$pass1=$_POST['pass1'];
if (isset($login) && isset($pass1))
{
$bdd=new PDO('mysql:host=localhost;dbname=monsite','root','');
$resultat=$req("SELECT * FROM false_membre where pseudo='".$login."' && pass='".$pass1."'");
$bdd->exec($resultat);
$donnees=$resultat->fetch();
if ($donnees['pseudo']==$login && $donnees['pass']==$pass1)
{
echo "ok";
}
else
{
echo'non';
}
}
else
{
}
?>
New Annotation