I have been searching these forums for help on adding a "Total images = " line on my main index page of my main site.
If I'm on the right track i need to create a .php page with the required code inside and then call that page via php include on my index page.
I have created a file called totalimages.php and placed it into my "photopost" dir...the code ive used is
Content visible to verified customers only.
The error i get is
Fatal error: Call to a member function query_first() on a non-object in /home/sites/vip1895980/httpd/htdocs/photopost/totalimages.php on line 1
Any ideas on what I'm doing wrong any help appreciated!!!