I am using 2 queries because the way I have the program set up, the admin clicks on a members name to edit their profile, when he clicks that name, some of the members information is brought up and echo'd on the page.
I have added the error checking and everything goes through OK, there is no error.
Here is the new code:
mysql_query("UPDATE `users` SET `postal` = '".$_POST['a']."', `pp` = '".$_POST['b']."' WHERE `email` = '$email'") or die(mysql_error());
I have also added:
<?php echo '<pre>';
print_r ($_POST);
echo '</pre>';
?>
to make sure that everything I wanted posted was going through, and it is.
I also have echo'd $email to make sure its the users email, and it is. So, since there are no sytax errors and all of the information from $_POST is coming through, I cannot find out why the hell this is not working.
The fields in the database are labeled correctly the tablename is "users" im updating fields "postal" and "pp" and there is a field named "email"