php - Fatal error: Call to a member function sql_in_set() on a non-object in -


My question is, is this error message telling me? What specifically do I need to do?

  Fatal error: Call the member function sql_in_set () on a non-object at 15/15/15/15 / on line 15  

I have a php page that draws users and has information from a phpbb3 forum. I have decided to add a recent topic sidebar to the same page and use the code from anywhere else, so it is not mine and I It is not fully understood. I get this error message.

I tried to see it and did not understand it, but I think that I want to fully understand what it means to use it better and to solve it.

Thank you.

This error message is saying that sql_in_set is being called on non object. / P>

If you are familiar with OOPs concepts, then you should know that whenever we are going to call functions of some class members, we will have to do it through class objects. Such as: $ db = new database (); $ Db-> member_function ();

In this example, we are calling the contents of the database class of the database class by $ db.

As you mentioned, you are copying the phpbb3 form and code from somewhere else

I think you are doing something like this:

< P> $ sql = 'SELECT * FROM' USERS_TABLE 'say pay' $ Db-> sql_in_set ('user_id', $ sql_in);

As explained here:

So I think that you are using it somewhere where $ db is not yet available / not.

Try to understand the flow of phpbb3 and pass the variable accordingly.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -