Welcome Guest, Not a member yet? Register   Sign In
accessing data in a controller
#9

[eluser]wiredesignz[/eluser]
@ricardino, CI does the number of rows checking for you already in the DB_result library. You don't need to do it again.

If the result() of your query is empty then an empty array() is returned, otherwise an object is returned as you see.

Yes PHP does have an is_object() function.


Messages In This Thread
accessing data in a controller - by El Forum - 09-02-2009, 04:13 AM
accessing data in a controller - by El Forum - 09-02-2009, 04:26 AM
accessing data in a controller - by El Forum - 09-02-2009, 06:56 AM
accessing data in a controller - by El Forum - 09-02-2009, 07:05 AM
accessing data in a controller - by El Forum - 09-02-2009, 07:10 AM
accessing data in a controller - by El Forum - 09-02-2009, 07:13 AM
accessing data in a controller - by El Forum - 09-02-2009, 07:20 AM
accessing data in a controller - by El Forum - 09-02-2009, 07:22 AM
accessing data in a controller - by El Forum - 09-02-2009, 07:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB