23 lines
556 B
PHP
23 lines
556 B
PHP
<?php
|
|
header("Content-Type: text/html; charset=UTF-8");
|
|
require_once('php/inc_functions.php');
|
|
|
|
|
|
$sql = "SELECT * FROM temp_tshirt WHERE 1=1";
|
|
$rec = $GLOBALS['db']->fxGetResults($sql );
|
|
|
|
|
|
//
|
|
|
|
for ($intCtr = 1; count($rec) >= $intCtr; $intCtr++) {
|
|
|
|
$sqlUpdate = "UPDATE inscriptions_comptes SET com_tshirt = '".$rec[$intCtr]['chandail']."' WHERE com_note = '" . $rec[$intCtr]['login'] . "'";
|
|
echo($rec[$intCtr]['login']." ".$rec[$intCtr]['chandail'].$sqlUpdate.'<br>');
|
|
$qryUpdate = $GLOBALS['db']->fxQuery($sqlUpdate );
|
|
|
|
}
|
|
|
|
|
|
print_r($rec);
|
|
|