ajout switch qrcode MSIN-4376
This commit is contained in:
@ -624,10 +624,10 @@ function fxupload_excel_fnq($mem_fichier) {
|
|||||||
|
|
||||||
if ($counter != 0) {
|
if ($counter != 0) {
|
||||||
// $sqlInsert = "INSERT INTO inscriptions_tq set tq_nom='" . $GLOBALS['db']->fxEscape(htmlentities(trim( trim($r[0])), ENT_QUOTES, 'UTF-8')) . "',tq_prenom='" . $GLOBALS['db']->fxEscape(htmlentities(trim($r[1]), ENT_QUOTES, 'UTF-8')) . "',tq_no='" . $r[2] . "',tq_adhesion='" . $r[3] . "',tq_naissance='" . $r[4] . "',tq_echeance='" . $r[5] . "',tq_sexe='" . $r[6] . "',tq_timeupdate=now()";
|
// $sqlInsert = "INSERT INTO inscriptions_tq set tq_nom='" . $GLOBALS['db']->fxEscape(htmlentities(trim( trim($r[0])), ENT_QUOTES, 'UTF-8')) . "',tq_prenom='" . $GLOBALS['db']->fxEscape(htmlentities(trim($r[1]), ENT_QUOTES, 'UTF-8')) . "',tq_no='" . $r[2] . "',tq_adhesion='" . $r[3] . "',tq_naissance='" . $r[4] . "',tq_echeance='" . $r[5] . "',tq_sexe='" . $r[6] . "',tq_timeupdate=now()";
|
||||||
//print_r($r);
|
print_r($r);
|
||||||
$newDate = date("Y-m-d", strtotime($r[7]));
|
$newDate = date("Y-m-d", strtotime($r[7]));
|
||||||
//echo("<br>");
|
//echo("<br>");
|
||||||
$sqlInsert = "INSERT INTO inscriptions_fnq set tq_no='" . $r[3] . "',tq_naissance='" . $newDate . "',tq_timeupdate=now()";
|
$sqlInsert = "INSERT INTO inscriptions_fnq set tq_nom='" . $r[1] . "',tq_prenom='" . $r[2] . "',tq_sexe='" . $r[3] . "', tq_no='" . $r[3] . "',tq_naissance='" . $newDate . "',tq_timeupdate=now()";
|
||||||
$qryInsert = $GLOBALS['db']->fxQuery($sqlInsert);
|
$qryInsert = $GLOBALS['db']->fxQuery($sqlInsert);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user