Hi everyone. I've been trying to create a login page and registration for so long. I couldn't find any help so I decided to join a community.:queasy:
Please tell me what's wrong with this code. I keep getting this message:
"Parse error: syntax error, unexpected T_LOGICAL_OR in /home/a8108101/public_html/login.php on line 11"
Here is the code.
<?php
$username=$_Post ['username'];
$password=$_Post['password'];
if ($username&&$password)
{
$connect=mysql_connect("host","user","pass") or die
("couldn't connect!");
mysql_select_db("a8108101_php"); or die("couldn't find db");
}
else
die ("please enter a username and password");
?>
Help would be nice.