Jump to content

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>
Link to comment
https://forums.phpfreaks.com/topic/13787-compoletley-baffled/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.