codice:
function InsertTrans($trans, $aut, $codice, $totale, $transBank, $tcont, $taut, $mac, $esito, $carta)
         InsertTrans($trans, $aut, $codice, $totale, $transBank, $mac, $esito, $taut, $tcont, $carta);
Come puoi vedere non passi i dati nello stesso ordine che hai stabilito nella funzione.