hey all
I've been using php/mysql for a couple of years now, nothing super advanced. Having never been able to work out classes im finally trying to but not very successfully.
Im trying to make 3 simple classes in 3 seperate files. One to perform basic mysql functions, one to use these functions to get certain database information such as the website title and then a final one to perform tasks such as editing the website title.
The idea being that on my website I can do
echo $site->title
whenever I want to display the site title
and when I want to edit it do something like
echo $edit->siteTitle
I hope this explains what I mean as I've tried numerous different things but dont seem to be having any luck, would someone be able to show me an example of how I would do this?