Jump to content

Archived

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

wasper-rocker

Compoletley Baffled

Recommended Posts

Please Help Me I do not understand why this error keeps appearing when i run the script.

Error: "Parse error: syntax error, unexpected $end in /home/i04wasp/public_html/process.php on line 38"

Script: <html><body>

<?php

$con = mysql_connect("localhost","i04wasp_duncan","WASP5rock");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("i04wasp_", $con);$sql="INSERT INTO account
(username,password,realname,email,gender,mainfo,tc,allowemail)
VALUES
('$_POST[nickname]',
'$_POST[password]',
'$_POST[realname]',
'$_POST[email]',
'$_POST[gender]',
'$_POST[mainfo]',
'$_POST[tc]',
'$_POST[allowemail]')
";if (!mysql_query($sql,$con))
  {
  die('Error: ' . mysql_error());
  }
  else
  echo "Account Successfully Created!>
?>

<form action='upload.php' method='post'>
<INPUT TYPE='submit' VALUE='Upload A File'>
</form>
<form action='Protected/login.php' method='post'>
<INPUT TYPE='submit' VALUE='Login Page'>
</form>
</body>
</html>

Share this post


Link to post
Share on other sites
You left off the terminating double quote from this line:
[code]<?php echo "Account Successfully Created!> ?>[/code]

Ken

Share this post


Link to post
Share on other sites
Change this:
echo "Account Successfully Created!>

To:
echo "Account Successfully Created!";

Orio

Share this post


Link to post
Share on other sites

×

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.