View Single Post
Old 06-01-2009, 01:01 PM   #1 (permalink)
Sirupsen
The Contributor
 
Sirupsen's Avatar
 
Join Date: May 2009
Posts: 53
Thanks: 2
Sirupsen is on a distinguished road
Bricks 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.
Send a message via AIM to Sirupsen Send a message via MSN to Sirupsen Send a message via Yahoo to Sirupsen Send a message via Skype™ to Sirupsen
Sirupsen is offline  
Reply With Quote