Jump to content

Parse Error help


MDanz

Recommended Posts

<?php

$username $_POST['username'];

$password $_POST['password'];

 

if($username&$password)

 

{

 

 

$connect = mysql_connect ("localhost","Master","password")or die("Couldn't Connect");

mysql_select_db("Login")or die("Couldn't Connect");

 

}

else {

 

die ("Please enter a username and password");

}

?>

 

 

Parse error: syntax error, unexpected T_VARIABLE in /home/ustackc1/public_html/Login.php on line 2

 

Can anyone help me out i tried different variations and checked but i keep on getting this error when i press the login button.

Link to comment
https://forums.phpfreaks.com/topic/168212-parse-error-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.