Codeigniter - get only 1 row from table |
I know this is a noob question but atm I can't figure out what i'm doing wrong.
I have model : PHP Code: public function getRow($id, $table) { and in view : PHP Code: <?php echo $data->column_name; ?> This work but if there are no records I get : Trying to get property of non-object .. I can't for the life of me remember how I fix the problem last time ...
Website : www.my-web-projects.com
|
Messages In This Thread |
Codeigniter - get only 1 row from table - by GrigoreMihai - 03-20-2015, 02:03 AM
RE: Codeigniter - get only 1 row from table - by algenza - 03-20-2015, 02:20 AM
RE: Codeigniter - get only 1 row from table - by suhindra - 03-20-2015, 03:07 AM
RE: Codeigniter - get only 1 row from table - by GrigoreMihai - 03-20-2015, 03:13 AM
RE: Codeigniter - get only 1 row from table - by suhindra - 03-20-2015, 04:15 AM
RE: Codeigniter - get only 1 row from table - by CroNiX - 03-20-2015, 03:31 PM
RE: Codeigniter - get only 1 row from table - by GrigoreMihai - 03-22-2015, 11:38 PM
|