Jump to content

Edit History

knacky

knacky

$db = Db::getInstance();

$idCustomer = $params['id_customer'];

$getTopCustomers = $db->executeS('SELECT id_customer FROM '._DB_PREFIX_.'customer ORDER BY id_customer LIMIT 200');

$foundIn200 = false;

foreach ($getTopCustomers as $customer) {

    if ($customer['id_customer'] == $idCustomer) {$foundIn200 = true; break;}

}

if ($foundIn200 == true){your send gift function}

knacky

knacky

$db = Db::getInstance();

$idCustomer = $params['id_customer'];

$getTopCustomers = $db->executeS('SELECT id_customer FROM '._DB_PREFIX_.'customer ORDER BY id_customer LIMIT 200');

$foundIn200 = false;

foreach ($getTopCustomers as $customer) {

    if ($customer['id_customer'] == $idCustomer) {$foundIn200 = true; break;}

}

return $foundIn200;

×
×
  • Create New...