Welcome Guest, Not a member yet? Register   Sign In
displaying a single row in view
#3

Just skip the foreach part in your view.
If your model returns one row from the database ($query->row() ), then the result is a single object, not an array of objects.
If your model returns $query->result(), then it's an array that you can walk through with foreach.
Reply


Messages In This Thread
displaying a single row in view - by nady - 09-07-2015, 06:40 AM
RE: displaying a single row in view - by PaulD - 09-08-2015, 02:49 AM
RE: displaying a single row in view - by Wouter60 - 09-08-2015, 01:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB