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.'
'); $qryUpdate = $GLOBALS['db']->fxQuery($sqlUpdate ); } print_r($rec);