I have the code
<?php
$chave = $retorno->resposta->cobrancasGeradas->cliente->cobranca->chave;
$this->db->insert('boletos', array('id_fatura'=>$id_fatura, 'chave_boleto'=>$chave));
?>
When it executes this insert
it returns the error:
Error Number: 1054
Unknown column 'HILO3' in 'field list'
INSERT INTO 'boletos' ('id_fatura', 'chave_boleto') VALUES (20, 81954-30765231-HILO3)
Filename: /var/www/html/Cotas/models/conta_model.php
Line Number: 168
The type field of chave_boleto
in MySQL is varchar(100)