Welcome Guest, Not a member yet? Register   Sign In
Fatal error: Call to a member function num_rows() on a non-object in .....

Good afternoon

I have a problem on my site when I want to search.
From time to time this error appears:

Fatal error: Call to a member function num_rows() on a non-object in /servers/apache/sites/www.******.fr/application/models/searchmodel.php on line 102

What may be the solution to this problem?

Advance thank you

Can you post the source so we can have a goodlook where the issue is coming in?

Your query is failing. The only time a database query returns a non-result is if there's a database error.

Please forgive me if I have not entered your messages being French I do not quite understand English.

to noctrum :
I made my database restore, the problem may come from there?

to wish_bear :
That is what the source?
Want to talk about the website where there is the problem?



Quote: Pour les requêtes du type SELECT, SHOW, DESCRIBE, EXPLAIN et les autres requêtes retournant un jeu de résultats, mysql_query() retournera une ressource en cas de succès, ou FALSE en cas d'erreur.

Pour les autres types de requêtes, INSERT, UPDATE, DELETE, DROP, etc., mysql_query() retourne TRUE en cas de succès ou FALSE en cas d'erreur.

I can't understand why search worked in a few days ago yet.

And I forget to say that the domain name has changed and that the domain name in the error message is old. It is from this change research is malfunctioning

Theme © iAndrew 2016 - Forum software by © MyBB