newbie
- From: Reggie <joelregisford1@xxxxxxxxxxx>
- Date: Fri, 29 Jun 2007 04:30:56 -0700
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");
}
?>
.
- Follow-Ups:
- Re: newbie
- From: none
- Re: newbie
- Prev by Date: Re: Question re: sql injection
- Next by Date: urgent please help (how to show .doc file on an html page)
- Previous by thread: Editable for only specific active directory user goup
- Next by thread: Re: newbie
- Index(es):
Relevant Pages
|