"; session_start(); include "function.php"; include "connect.php"; ?>
1 ) { echo "ไม่สามารถส่งได้ เนื่องจากเลขบัตรซ้ำ ติดต่อเจ้าหน้าที่
"; exit(); } $dateY=date(Y)+543; $today=date(d).'/'.date(m).'/'.$dateY; // ป้องกันการขอ password เกิน 3 ครั้งต่อวัน check โดยเวลาขอแล้วจะ update และก่อนส่งใหม่จะ query ก่อน $sql_forgot = "select count(*) as c from annual_profile_sql_log where user='".trim($_POST['txtPersonid'])."' and sql_log='forgot' and ctime='$today'"; //echo "$sql_forgot"; $result_sql_forgot = mysql_db_query($db,$sql_forgot); while ($row_num_forgot = mysql_fetch_array($result_sql_forgot)) { $num_forgot = $row_num_forgot[c]; } if ( $num_forgot >= 3 ) { echo "จำกัดการส่ง 3 ครั้งต่อวัน
"; exit(); } mysql_connect("localhost","annualpsd","eT1xYw6V"); mysql_select_db("annualpsd"); $strSQL = "SELECT * FROM annual_profile WHERE annual_no=57 and personalid = '".trim($_POST['txtPersonid'])."' "; $objQuery = mysql_query($strSQL); $objResult = mysql_fetch_array($objQuery); if(!$objResult) { echo "Not Found Personid!"; } else { inform2($objResult["email"],$objResult["user"],$objResult["pass"]); $sql_insert_forgot = "insert into annual_profile_sql_log (user,ctime,sql_log) values ('".trim($_POST['txtPersonid'])."','$today','forgot') "; $result_insert_forgot = mysql_db_query($db,$sql_insert_forgot); } mysql_close(); } else { ?>
    กำหนดให้ส่งได้ไม่เกิน 3 ครั้งต่อวัน
  ใส่เลขบัตรประชาชน
your person id
 
   
  หากไม่พบให้ตรวจสอบใน Junk Mail