Jump to content


Photo

Compoletley Baffled


  • Please log in to reply
3 replies to this topic

#1 wasper-rocker

wasper-rocker
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 05 July 2006 - 08:47 PM

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>


#2 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 05 July 2006 - 08:52 PM

You left off the terminating double quote from this line:
<?php echo "Account Successfully Created!> ?>

Ken

#3 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 05 July 2006 - 08:53 PM

Change this:
echo "Account Successfully Created!>

To:
echo "Account Successfully Created!";

Orio
Think you're smarty?

(Gone until 20 to November)

#4 wasper-rocker

wasper-rocker
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 05 July 2006 - 08:55 PM

I am such an idiot I have spent ages searching through this to find the error and its simple!!!

Thankyou so much!!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users