This is the query I use:
<?php
} else {
$encryptedpassword = md5($password);
$sql = "INSERT INTO staff (adminname,access,password,language,template) VALUES ('$adminname','$new_access','$encryptedpassword','$default_language','$default_template')";
if ($adminname && $access && $password){ // CHECKS TO SEE IF REQUIRED FIELDS ARE FILLED IN
$result = mysql_query($sql);
?>
I tried changing it to what you suggested without luck....