ohdang888 Posted March 1, 2008 Share Posted March 1, 2008 NEVERMIND-- SOLVED the error i am getting is this: Parse error: syntax error, unexpected $end in C:\xampp\htdocs\change_settings.php on line 29 <?php include("include/topmenu.php"); function sql_quote($data) { if (get_magic_quotes_gpc()) { $data = stripslashes($data); } return addslashes($data); } $id = sql_quote($_GET['id']); if (isset($_POST['submit'])) { mysql_connect("localhost", "*****", "****") or die(mysql_error()); mysql_select_db("members") or die(mysql_error()); $new_age_race = $_POST["age_race"]; $new_contact = $_POST["contact"]; $new_name = $_POST["name"]; $new_non_member = $_POST["non_member"]; $query = "UPDATE `user_settings SET `name` = '{$new_name}' SET `contact` = '{$new_contact}' SET `age_race` = '{$new_age_race}' SET `non_member` = '{$new_non_member}' WHERE id = '{$id}'"; mysql_query($query); echo 'done'; ?> <br> <br> <?php include ("include/footer.php");?> THIS IS LINE 28, THERE IS NO LINE 29 Quote Link to comment Share on other sites More sharing options...
toplay Posted March 1, 2008 Share Posted March 1, 2008 You're missing a right curly brace to close off this line: if (isset($_POST['submit'])) { Quote Link to comment Share on other sites More sharing options...
ohdang888 Posted March 1, 2008 Author Share Posted March 1, 2008 THANKS! Quote Link to comment 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.