This article mainly introduces PHP's methods for identifying users' emails through get, involving php's skills in reading, judging databases, and using session login, for more information about how to use PHP to identify emails sent by users through get, you can refer to this article. it involves php's skills in reading, judging, and using session login for databases, for more information, see
The example in this article describes how PHP uses get to identify users' email sending methods. Share it with you for your reference. The details are as follows:
Send_email.php is as follows:
Reg. php is as follows:
";}?>
Newfile. php is as follows:
"; Echo $ out [" created_at "]."
"; Echo" send email
"; // Check whether there is any new email $ SQL _search_email =" select * from email where accepter_id = '". $ id. "'"; $ query = mysql_query ($ SQL _search_email); $ result_email = mysql_fetch_array ($ query ); if ($ result_email ["accepter_id"] == _ SESSION ["id"] & $ result_email ["flag"] = "no") {echo"You have a new email";}?>
Login. php is as follows:
Delete_session.php is as follows: