Call a function from class 2, inside class 1
Hello! I would like to know the easiest, or best way to do that; call a function from another class inside a class. Both classes are of course included in the page where I want the output.
How should I start learning to do this? Which is the best method for a new to classes guy like me? :)
Mostly it'll just be that I want to connect and query to the MySQL via. my database class, from my, for instance, News class.
Something like this, probably:
|All times are GMT. The time now is 10:32 PM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0