Code: Select all
while($row = mysql_fetch_assoc($int)){
$_SESSION['uid'] = $row['id']; //O sesiune cu userid ,posibil sa iti trebuiasca undeva.
$_SESSION['nume'] = $row['username']; //O sesiune cu numele userului,cand face logare ii afiseaza numele.
}
print $messages['LOGIN_SUCCES'];
//print 'Salut '.$_SESSION['nume'].',te-ai logat cu succes pe Minecraft Romania. <br />
//<a href="index.php">Continua</a>.
//';
header('Location: index.php');
Code: Select all
header('Location: index.php');
exit();