heres my code:
<?php
include "../config.php3";
include "../dbconnect.php3";
$id = $_REQUEST['memberid'];
$user = $_POST['username'];
$pass = $_POST['pass'];
$password = md5($_POST['pass']);
$usrlvl = $_POST['lvl'];
$email = $_POST['email'];
$regcode = md5(uniqid(rand(),1));
if($pass == "")
{
$query = mysql_query("UPDATE $table3 SET usrlvl='$usrlvl',username='$user',email='$email' WHERE id='$id'",$conn);
echo "password not set<br>";
}
else
{
$query = mysql_query("UPDATE $table3 SET usrlvl='$usrlvl',username='$user',password='$password',email='$email' WHERE id='$id'",$conn);
echo "password set<br>";
}
echo "$user has been amended <a href='Admin_main.php?page=memberlist'>Click here to return to the Member List</a>";
echo $query;
?>
i cant understand whats wrong all field names on the previous form are in sync with my $_POST assignment so why is it not editing the table?