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> 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 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 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!! Link to comment https://forums.phpfreaks.com/topic/13787-compoletley-baffled/#findComment-53574 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.