$bin = substr($pan, 0, 6); $bank_info = $db->query("SELECT * FROM bin_list WHERE bin = '$bin'")->fetch(); echo "[$bin] $bank_info[bank] - $bank_info[country] - $pan|$month|$year => " . ($isLive ? 'LIVE' : 'DEAD');
The expiration month must be between 1 and 12, and the expiration year must not be in the past. cc checker script php