$sql="select * from member where uPASS = '$told' ";
$result=mysql_db_query($dbname,$sql);
$num=mysql_num_rows($result);
if ($num<1) {
echo "<center><br><b><font color=\"red\"> Check Oldpassword !!!</font>";
}
$sql = "update member set uPASS='$tnew' where uUSER = '$namelog' ";
$result=mysql_db_query($dbname,$sql);
if ($result) {