Im new to the forum, and looking for a bit of help.
Im developing a site complete with user accounts, mail from user to user, etc.
Ive gotten the accounts to function, login and register. But i am having trouble allowing a user to change their account information.
This is the code to update the mysql database with a php form..
Code: Select all
if(!$error) {
$userName = $_SESSION['userName'];
mysql_query("INSERT INTO users (name, location, funds, time, email) VALUES ('$_POST[name]', '$_POST[location]', '$_POST[funds]', '$_POST[time]', '_POST['email']') WHERE username = test");
}
Thanks for helping