$result = "Please fill all the required fields."; } unset($objLogin); } else { if (isset($forgot_submit)) { $objValidation = new validation(); $objValidation->add_fields($email, 'req', 'Please Enter Email Address'); $error = $objValidation->validate(); if ($error) { $errorForgot = $error; $flag = 1; unset($objValidation); } else { $objLogin = new LoginSystem(); $objCommon = new common(); $result_forgot = $objCommon->read(TBL_ADMIN, "email='" . $objLogin->clean($email) . "'"); $row_forgot = $db->fetchNextObject($result_forgot); //pr($row_forgot);exit; if ($row_forgot->email == $email && isset($row_forgot->email)) { $message = ' <p>Your Login Details are as follows :</p> <table width="75%" border="0" cellpadding="2" cellspacing="0"> <tr> <td>Username:</td> <td>' . $row_forgot->username . '</td> </tr> <tr> <td>Password:</td> <td>' . $row_forgot->password . '</td> </tr> </table>';