![]() |
Display different stats on Stats page
The title essentially says it all.
I would like to display an adoptable's "trophies" under the stats page. Trophies are stored in the owned_adoptables table as "trophies". Right now in class_ownedadoptables.php all I have is this, but it is not calling the trophies; PHP Code:
|
Well just putting the function in the class file alone won't make it show up, you have to go to the view file for that. Then you could add something like:
PHP Code:
PHP Code:
|
I do already have it in the statsview.php file, but for some reason it is unable to call the trophies.
An excerpt of my getTable function within statsview.php: PHP Code:
|
Ahh, I think I see the possible problem. Did you try changing:
PHP Code:
PHP Code:
|
Only just saw your reply!
Trying it now...and I am getting this error: Code:
Fatal error: Call to a member function select() on null in /home/inekelmy/public_html/classes/class_ownedadoptable.php on line 89 PHP Code:
|
Wait a minute, I may have figured it out. I added this (copied from totalclicks and such) and modified it under the get function:
PHP Code:
https://i.gyazo.com/c5364f292a998d44...97f5ea7963.png This is great! |
All times are GMT -5. The time now is 07:55 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.