Check FLO ID active and registration status

This commit is contained in:
tripathyr 2021-11-06 10:10:40 +05:30 committed by GitHub
parent 3e7fc54da0
commit f46a9827fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -219,6 +219,47 @@ class Users {
return false;
}
public function check_flo_id_active_status($flo_id) {
if ($this->databaseConnection()) {
$query = $this->db_connection->prepare("SELECT * FROM $this->customers_table WHERE flo_id = :flo_id AND is_active = 1 LIMIT 1");
$query->bindParam('flo_id', $flo_id);
if ($query->execute()) {
$row_count = $query->rowCount();
if ($row_count == 1) {
return true;
}
return false;
} else {
return false;
}
}
return false;
}
public function check_flo_id_registration_status($flo_id) {
if ($this->databaseConnection()) {
$query = $this->db_connection->prepare("SELECT * FROM $this->customers_table WHERE flo_id = :flo_id LIMIT 1");
$query->bindParam('flo_id', $flo_id);
if ($query->execute()) {
$row_count = $query->rowCount();
if ($row_count == 1) {
return true;
}
return false;
} else {
return false;
}
}
return false;
}
public function displayUserTransaction($user_id, $start=0, $limit=10) {
if ($this->databaseConnection()) {
$transactions = array();