mmm que intentas hacer con esto:
Código PHP:
Ver original$sql = mysql_query("SELECT * FROM members WHERE nick='$nick' AND password='$password' AND activacion='1'"); if($login_check > 0){
// Get member ID into a session variable
$id = $row["id"];
$_SESSION['id'] = $id;
// Get member username into a session variable
$nick = $row["nick"];
$_SESSION['nick'] = $nick;
// Print success message here if all went well then exit the script
header("location: http://www.vacancesisortides.com/index.php"); } // close while
}
yo usaria:
Código PHP:
Ver original$sql = mysql_query("SELECT * FROM members WHERE nick='$nick' AND password='$password' AND activacion='1'"); // Get member ID into a session variable
$_SESSION['id'] = $row["id"];
// Get member username into a session variable
$_SESSION['nick'] = $row["nick"];
// Print success message here if all went well then exit the script
header("location: http://www.vacancesisortides.com/index.php"); } else {
dejendo ese detalle de lado, no veo en que momentos compruebas si el usuario ya esta logueado, podemos mejorar ese codigo pero el problema no esta alli...