![]() |
Undefined index - problem with listing data from DB - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Undefined index - problem with listing data from DB (/showthread.php?tid=46900) |
Undefined index - problem with listing data from DB - El Forum - 11-19-2011 [eluser]Unknown[/eluser] I dont know why i get this error. Message: Undefined index: id Index in database is ok, and checked When i try to display data from DB in controller - its ok. I was trying everything, I think It's something with objects. $vars['pList'] is an arry of objects so array $vars goes to View, and I should get access by using $pList['somthing']. Please help me! Controller code (just a part witch is needed): Code: function index() View code Code: <table> Model code Code: <?php |