How to make a check for email if there is no email in the database so that "email was not found in the database", and if there was an email in the database so that password recovery was sent to email
Here is the code that checks:
elseif ($a=get_sql_row('profile',"rm='0' and name='email' and value='$id'")) { $error="в базе не найден e-mail"; }
Well, it displays "e-mail not found in the database" when the email is in the database, and when there is no email in the database, the code sends a password recovery email