Hi all
I am trying to create a simple login to a webpage. From watching you tube tutorials I have put together the basics, and i understand the processing. However when i run my login processing script i get the following error from the php script:
Parse error: syntax error, unexpected ';'
My code PHP code is, the error occurs at $con = msql_connect("****","*****","****");
PHP Code:
$username = $_POST["username"];
$password = $_POST["password"];
$login = $_GET["login"];
if($login=='yes')(
$con = msql_connect("****","*****","****");
msql_select_db("Login");
$get = msql_query("select count(id) FROM Login WHERE user='$username' and pass='$password'");
$result = msql_result($get,0);
if($result!=1}(
echo "Invalid Login";
)Else(
echo "Login Sucessfull";
)
)
Cannot understand the problem when all the examples i have seen show a semi colon at the end of the line as shown?
Am i wrong somewhere else?.....any help would be greatly appreciated
Note I have omitted the actual login details for my SQL database from the line and replaced with stars
thanks
Bookmarks