$signUp = false; $qId = 107; $email = '*****@*****.**'; // 6 = is sign up pending echo "\n test remove the email "; //validate and conditions //validate and conditions // condition if (!empty($qId) and !empty($email)) { $invited->_setInvitedInformationByQid($qId, $database); if ($invited->getEmail() == $email) { if ($invited->getStatus() == 4) { Log::addExecutionLog("Information already deleted"); } else { if ($invitedQueue->updateQueueStatus($qId, 1, $database)) { if ($invited->updateInvitedStatus($invited->getInvitedId(), 4, $database)) { Log::addExecutionLog("Information successfully deleted"); } else { Log::addExecutionLog("Information Failed update invited status"); } } else { Log::addExecutionLog("Information Failed update queue status"); } } } else { Log::addExecutionLog("Email url is not match in the database using qId"); } } else { Log::addExecutionLog("Email or qId is empty"); } echo "message " . Log::printExecutionLog();