Jump to content

Problem with classes


Obi1-Cannabis

Recommended Posts

i have the ADOdb connection in the constructor of a class in a variable $conn but when i try to use it in another function forexample $var=$conn->GetAll("Select * from table where id='$id'") it gives me this error in the output:Fatal error: Call to a member function on a non-object in C:\Trabalhos\Apache\estagio\teste\classes\class.php on line 24can anyone explain?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...