

Just over a week until i finnish college
time for a mad rush of finnishing up work and making sure everything is handed in One this that is stopping me is making my goddamn site to work... this is where the knowlage of script monkey come in... that's if they're reading this. I get the error
Parse error: syntax error, unexpected T_STRING in G:\xampp\htdocs\titanium\login.php on line 19but i can't find anything wrong in the code which is below
<?
//Database Information
$dbhost = "localhost";
$dbname = "twistedzone";
$dbuser = "root";
$dbpass = "************";
//Connect to database
mysql_connect ( $dbhost, $dbuser, $dbpass)or die("Could not connect: ".mysql_error());
mysql_select_db($dbname) or die(mysql_error());
session_start();
$username = $_POST[username];
$password = md5($_POST[
assword]);
$query = `select * from users where username=$username and password=$password;
$result = mysql_query($query);
if (mysql_num_rows($result) != 1) {
$error = Bad Login;
include login.html;
}
else {
$_SESSION[username] = $username;
include memberspage.php;
}
?>Any help would be great.
Birthday tommorow


Devious Comments
--
Here's a critique-guide that's very useful! Now USE IT! [link]
I'd turn gay for `Vlei.
--
There is no problems, Only Solutions.
John Lennon
--
Gallery
Group Manager of #dAmnU
--
Gallery
Group Manager of #dAmnU
--
Here's a critique-guide that's very useful! Now USE IT! [link]
I'd turn gay for `Vlei.
Previous PageNext Page