Hey,
I'm having a problem executing the following code:
<?php
session_start();
require('connect.php');
if($_POST['username'])){
$name=$_POST['username'];
$checkUsername = mysql_query("select * from users where UserName='$name'");
if(mysql_num_rows($checkUsername){
echo 'Logged in successfully!';
$_SESSION['username'] = $name;
}
else{
echo 'The username or password you've entered is not valid!';
}
}
?>