Welcome Guest, Not a member yet? Register   Sign In
Confused After Video Tutorial
#4

[eluser]skunkbad[/eluser]
I think if you leave it out, you probably won't see your comments. The proper usage would be to test if there is a result set before trying to count it. I'll try to post an example, but I can barely type on the computer I'm on...

EDIT

Here's a little code snippet I took out of one of my projects:

Code:
if($query->num_rows() > 0)
{
    return $query->result();
}

This makes sure that there is a result set to count while attempting to count it.


Messages In This Thread
Confused After Video Tutorial - by El Forum - 04-03-2010, 10:34 PM
Confused After Video Tutorial - by El Forum - 04-04-2010, 09:57 AM
Confused After Video Tutorial - by El Forum - 04-04-2010, 04:26 PM
Confused After Video Tutorial - by El Forum - 04-04-2010, 05:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB