[solved] Message: "Undefined variable: data" - 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: [solved] Message: "Undefined variable: data" (/showthread.php?tid=16008) |
[solved] Message: "Undefined variable: data" - El Forum - 02-22-2009 [eluser]Jan_1[/eluser] Hello together, I getting ill by trying and searching in forums and documentations for hours... I do not get my MySQL-Data into my View. I get a correct result using "print_r($data);". I started with MVC but after reducing everything to the problem I reduced also the model. Seems I don't understand the basics. Could somebody give me some good hints? Thanks a lot!!! Jan Controller: Code: <?php View: Code: <table> Code: A PHP Error was encountered [solved] Message: "Undefined variable: data" - El Forum - 02-22-2009 [eluser]xwero[/eluser] The variables are extracted so you fetch them by the array key. in your case echo $street should do it. [solved] Message: "Undefined variable: data" - El Forum - 02-22-2009 [eluser]Jan_1[/eluser] Yes, that's it! Thank you!!! |