Paste: Olaf
Author: | OlafJungle8/0 en 869 EASY |
Mode: | php |
Date: | Tue, 22 Feb 2011 14:46:55 |
Plain Text |
$login=$_POST['login'];
$pass1=$_POST['pass1'];
if (isset($login) && isset($pass1))
{
$bdd=new PDO('mysql:host=localhost;dbname=monsite','root','');
$req("SELECT * FROM false_table where pseudo='".$login."' && pass='".$pass1."'");
$bdd->exec($resultat);
$donnees=$resultat->fetch();
if ($donnees['pseudo']==$login && $donnees['pass']==$pass1)
{
echo "ok";
}
else
{
echo'non';
}
}
else
{
}
Author: | OlafJungle8/0 en 869 EASY |
Mode: | php |
Date: | Tue, 22 Feb 2011 14:48:03 |
Plain Text |
<?php
$login=$_POST['login'];
$pass1=$_POST['pass1'];
if (isset($login) && isset($pass1))
{
$bdd=new PDO('mysql:host=localhost;dbname=monsite','root','');
$req("SELECT * FROM false_table 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