Welcome Guest, Not a member yet? Register   Sign In
ActiveRecord for CodeIgniter: Rails-style model interactions
#57

[eluser]easylancer[/eluser]
How do i check if the table is empty or if data is in it?

I would normally type:
Quote:if($pages->num_rows() > 0){
Then show the results else show something else how do i accomplish this?

Can someone also explain how ActiveRecord works as the examples are very lacking and its hard to learn with such limited resources.


Messages In This Thread
ActiveRecord for CodeIgniter: Rails-style model interactions - by El Forum - 11-12-2007, 06:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB