i am a codeigniter biginner, i have two files in my view folder. logged _in_ area.php and personal_emp .php. design is - 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: i am a codeigniter biginner, i have two files in my view folder. logged _in_ area.php and personal_emp .php. design is (/showthread.php?tid=52892) |
i am a codeigniter biginner, i have two files in my view folder. logged _in_ area.php and personal_emp .php. design is - El Forum - 07-01-2012 [eluser]atulswe1[/eluser] i got the error undifined index:id and name,,all of views 1.logged_in_area Code: <table border="1" height="200" width="200" bordercolor="#003366" align="center"> 2.personal_emp Code: table border="1" height="200" width="200" bordercolor="#003366" align="center"> controller Code: function abc($id = 0) model Code: function info1($id) i am a codeigniter biginner, i have two files in my view folder. logged _in_ area.php and personal_emp .php. design is - El Forum - 07-01-2012 [eluser]bclinton[/eluser] Try a print_r($rows) in your view to see what your row array looks like. If that doesn't help, look into logging in your controller and model. i am a codeigniter biginner, i have two files in my view folder. logged _in_ area.php and personal_emp .php. design is - El Forum - 07-03-2012 [eluser]cartalot[/eluser] row array in the model might be an issue, but the bigger problem is -- you have an error, but you dont know where the error is from solution -- error check each step in your model, after the $query, make sure there is something there before returning, otherwise return false. note this is also using query-row() Code: if ( $query->num_rows() == 1 ) { return $query->row(); } in your controller - i'm showing an echo for debugging, never echo directly from controller for live site Code: // IF we did NOT ( the ! ) get something back from model then.... |