17.03.2018, 00:03
I don't know about php that much, but this part kind of bugging me:
An if statement can only have one else.
PHP код:
if($rows==1){
$_SESSION['username'] = $username;
header("Location: profile.php"); // Redirect user to index.php
}else{
echo "random text";
}
}else{
}