I'm trying to create a way for my users to update their personal information.
Here is what I tried:
$name= mysql_query("update $table SET name='".$_POST['name']."' where id = '".$_POST['email']."'");
I am using a cookie to pull their email address on a hidden input field on the form and this doesn't seem to be working. The query appears to be executing as it prints everything after the query, but when I check the database, the name was not updated. Any advice would be appreciated.