wasper-rocker Posted July 5, 2006 Share Posted July 5, 2006 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> Quote Link to comment https://forums.phpfreaks.com/topic/13787-compoletley-baffled/ Share on other sites More sharing options...
kenrbnsn Posted July 5, 2006 Share Posted July 5, 2006 You left off the terminating double quote from this line:[code]<?php echo "Account Successfully Created!> ?>[/code]Ken Quote Link to comment https://forums.phpfreaks.com/topic/13787-compoletley-baffled/#findComment-53570 Share on other sites More sharing options...
Orio Posted July 5, 2006 Share Posted July 5, 2006 Change this:echo "Account Successfully Created!>To:echo "Account Successfully Created!";Orio Quote Link to comment https://forums.phpfreaks.com/topic/13787-compoletley-baffled/#findComment-53572 Share on other sites More sharing options...
wasper-rocker Posted July 5, 2006 Author Share Posted July 5, 2006 I am such an idiot I have spent ages searching through this to find the error and its simple!!!Thankyou so much!! Quote Link to comment https://forums.phpfreaks.com/topic/13787-compoletley-baffled/#findComment-53574 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.