PHP Classes
Posted: Tue Sep 14, 2004 3:07 pm
Hello,
I can using classes etc etc
but I want to know if its possible to call a class from inside a class
I'll explain why
I have a class that access a MySQL database (Item) and I have another class that does all the accessing (contect, dis-connect, etc) (db). Now I would love to bet able to us my Database (db) inside my Items (Item) classes as the db class counts queries, etc.
If this aint possible It's working as I am doing it but I thought I would ask
Cheers
Andrew [/b]
I can using classes etc etc
but I want to know if its possible to call a class from inside a class
I'll explain why
I have a class that access a MySQL database (Item) and I have another class that does all the accessing (contect, dis-connect, etc) (db). Now I would love to bet able to us my Database (db) inside my Items (Item) classes as the db class counts queries, etc.
If this aint possible It's working as I am doing it but I thought I would ask
Cheers
Andrew [/b]