เช่น $sql=("select * from user where useri'$user"' );
$result=mysql_query($sql);
$fetch=mysql_fetch_array($result);
$pass=$fetch['pass'];
if($pass==$newpass){
$sql2=("update user set pass='$newpass' where user='$user' ");
$result2=mysql_query($sql2);
}else{
echo"ไม่สามารถเพิ่มข้อมูลได้";
}
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in c:\appserv\www\pass.php on line 13
รหัสผ่านเก่าไม่ถูก
password old :
new password :
confirm password :