Undefined offset: 1 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Undefined offset: 1 (/showthread.php?tid=69693) |
Undefined offset: 1 - pippuccio76 - 01-06-2018 HI sorry for english : I have a input datepicker to select month/year : Code: <?php And in controller i have this : Code: public function ricerca_clienti_non_ordinano_n_mesi(){ in the visualizza_clienti_non_ordinano(view) i print the variable (to debug): Code: <div class="row"> for example i have : Code: Risultati Ricerca: but the templates view aren't load and i have this error : Code: <h4>A PHP Error was encountered</h4> $anno=$mese_esploso[1]; but the print in view (to debug ) return a value ... Wath's wrong ? RE: Undefined offset: 1 - jreklund - 01-06-2018 Make a vardump after $mese_selezionato and $mese_esploso. var_dump($mese_selezionato); var_dump($mese_esploso); die(); |