new here, looking for a hand
Posted: Sun Apr 13, 2008 9:45 pm
Hi,
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..
Is there an error in this code? Im getting no errors when i use the form, but the database entries are not getting updated.
Thanks for helping
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