$connexion=mysql_connect($hote,$utilisateur,$pass) or die ("<div class='alert alert-danger'><strong>ERREUR : </strong>Connexion au serveur impossible !</div>");
$db=mysql_select_db($base,$connexion) or die ("<div class='alert alert-danger'><strong>ERREUR : </strong>Selection de la base $base impossible !</div>");
}
mysql_query("SET NAMES UTF8");
}
function requete1l($sql)
{
$resultat=mysql_query($sql) or die("<div class='alert alert-danger'><strong>ERREUR : </strong>Requete $sql problematique !</div>");
$ligne=mysql_fetch_array($resultat);
return $ligne;
}
<?php include "header.php";
$email=$_POST['email'];
$email=$_POST['email'];
$password=sha1($_POST['password']);
$password=sha1($_POST['password']);
connecte("ecomonde");
$ligne=requete1l("SELECT * FROM membres WHERE email='$email' AND pass='$password'");
$ligne=requete1l("SELECT * FROM membres WHERE email='$email' AND pass='$password'");