Posted by Reggie on 06/29/07 11:30
Parse error: syntax error, unexpected '=' in /home/fhlinux169/c/
clashoff.co.uk/user/htdocs/create_entry.php on line 8
Hi i seem to be getting this error message please help.
This is the code am useing:
<?php
mysql_connect("localhost", "root") or
die ("Could not connect to database");
mysql_select_db("user") or
dir ("Could not select database");
if ($submit = = "Register")
{
$query = "insert into user
(username, password) values ('$username', '$password')";
mysql_query($query) or
die (mysql_error());
?>
<h3>You are now registered</h3>
<a href="index.html">Go back to main page</a>
<?php
}
else
{
include("not.html");
}
?>
[Back to original message]
|