17 lines
433 B
PHP
17 lines
433 B
PHP
<?php
|
|
require_once('php/inc_fonctions.php');
|
|
require_once('php/inc_fx_memberships.php');
|
|
|
|
$strPrrefixeNumero = trim($_REQUEST['prefix_numero']);
|
|
$intMembershipType = intval(trim($_REQUEST['mt_id']));
|
|
$intNumero = intval(trim($_REQUEST['tq_numero']));
|
|
|
|
$intNb = fxIfMembership($intMembershipType, $strPrrefixeNumero . $intNumero);
|
|
|
|
if (intval($intNb) > 0) {
|
|
$blnValid = 'false';
|
|
} else {
|
|
$blnValid = 'true';
|
|
}
|
|
|
|
echo $blnValid; |