0
Hello, all right with you?
I’m having a big problem in codeigniter that I’m not sure how to fix,
I have a helper where it works as follows
function forms($a){
for(i=0;i<=$a;i++){
<input type='text' name='forms_$i'>
}
}
where I previously used a code to generate the amount of inputs I wanted, however not very well how to receive these values in my controller, because I need to take the values received in these forms and put them in the database.
If anyone can help me in this part I would greatly appreciate both in a way of receiving the values or a more practical way.
Thank you all.
P.S.: The other parts are correct in my code, I just don’t know exactly how to receive the values in my controllers to put them in the database.
it worked at first, however when I increased the amount of data from [$data] it gave the following error 'Error Number: 1048 Column 'bin1' cannot be null INSERT INTO
binaria
(questao
,bin1
,bin2
) VALUES ('2s121s12', NULL, NULL) Filename: C:/xampp/htdocs/SAO/system/database/Db_driver.php Line Number: 691'– Gabriel Silva
I managed to resolve, thank you very much for your help
– Gabriel Silva