Ok, this following statement is supposed to say if $newpass does not have anything in the input box, then don't update, else if it does, update. But it will update it either way. Any ideas?
if(isset($submit) || $newpass <> "") {
$db = mysql_select_db("p",$con) or die("error");
$check = md5($newpass);
$sql = "UPDATE users set check = '$check' WHERE uname='$uname'";
$result = mysql_query($sql,$con) or die("error");
} else {
echo ("");
}
Thanks
Anthony