bon bon... le voila :
<?
$db = mysql_connect("$hostname", "$username", "$password" );
mysql_select_db("$bdd",$db);
if($MYFORUM != $myforum && $MYFORUM != "" )
{
$request = "SELECT * FROM ";
$request .= "$memtable WHERE ";
$request .= "Login='$MYLOGIN' AND key_id='$KEY_ID'";
}
else
{
$request = "SELECT * FROM ";
$request .= "$memtable WHERE ";
$request .= "Login='$login' AND Passwd='$mdp'";
}
$rqt = mysql_query($request);
if(mysql_num_rows($rqt) != 0)
{
$MYLOGIN = mysql_result($rqt,0,"Login" );
$MYPASS = mysql_result($rqt,0,"Passwd" );
$MYPSEUDO = mysql_result($rqt,0,"Pseudo" );
$MYMAIL = mysql_result($rqt,0,"Email" );
$MYFOTO = mysql_result($rqt,0,"foto" );
$ADMIN = mysql_result($rqt,0,"admin" );
$MSN = mysql_result($rqt,0,"msn" );
$AIM = mysql_result($rqt,0,"aim" );
$MYID = mysql_result($rqt,0,"ID" );
$KEY_ID = mysql_result($rqt,0,"key_id" );
$MYFORUM = $myforum;
$COOKIE = "";
vss en voulez plus...
Message édité par NeOtHeOnE le 27-11-2002 à 10:26:41