Welcome Guest, Not a member yet? Register   Sign In
error with loop FOR | erro com loop FOR
#1

[eluser]Marlon Souza[/eluser]
Code:
A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 2
Filename: extra/carros_zerokm.php
Line Number: 180
A PHP Error was encountered

Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/itacuac/public_html/novo/system/libraries/Exceptions.php:166)
Filename: helpers/url_helper.php
Line Number: 539




Amigos,
estou desenvolvendo uma aplicação onde preciso adicionar os dados de um formulário em 2 tabelas diferentes, o insert está normal para a primeira tabela mais a segunda tabela é um relacionamento de dados feito com checkbox e para o insert estou dando loop com FOR, porem ao selecionar algum checkbox, é gerado o erro:

Esta linha do erro "Message: Undefined offset: 2" o numero do offset é a quantidade de checkbox selecionados

Espero que alguém possa me ajudar.
Desde já agradeço a todos


Friends,
I am developing an application where I need to add data from one form into 2 different tables, the insert is normal for the first table but second table is a data relationship made with checkbox and insert them looping with FOR, but on the select a checkbox, the error is generated:

This line of the error "Message: Undefined offset: 2" the number of offset is the amount of checkbox selected

I hope someone can help me.
I thank's all




Theme © iAndrew 2016 - Forum software by © MyBB