Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Num_rows() returns error message
#3

(10-19-2017, 08:43 AM)Narf Wrote:
(10-19-2017, 07:33 AM)Wouter60 Wrote: fatal error: call to a member function num_rows() on boolean

That means that $query is a TRUE/FALSE and not an object. Likely FALSE due to query failure.

I know, but how can $this->db->list_tables() cause this error?
In MySQL, I've never seen this error. There, I can check for $query->num_rows() == 0); This doesn't seem to work in MSSQL (Windows Server).
Reply


Messages In This Thread
RE: Num_rows() returns error message - by Narf - 10-19-2017, 08:43 AM
RE: Num_rows() returns error message - by Wouter60 - 10-19-2017, 08:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB