I'm trying to get a server variable to show up in my FluxCP using php. Basically I want to show my bank account balance on the zeny ranking page. I have been working on it for a long time so I figured I'm at the point of asking for help! I used the code below.
At the top I used this:
$sql = "SELECT Balance FROM BankBalance AS bbalance";
$sth = $server->connection->getstatement($sql);
$bankbalance = $sth->fetchAll();
Farther down in the actual table I used this. This results in an error, Notice: Trying to get property of non-object in /usr/html/themes/default/ranking/zeny.php on line 60 0.
Question
Peopleperson49
I'm trying to get a server variable to show up in my FluxCP using php. Basically I want to show my bank account balance on the zeny ranking page. I have been working on it for a long time so I figured I'm at the point of asking for help! I used the code below.
At the top I used this:
Farther down in the actual table I used this. This results in an error, Notice: Trying to get property of non-object in /usr/html/themes/default/ranking/zeny.php on line 60 0.
On logout this is updated:
Edited by Peopleperson49Link to comment
Share on other sites
9 answers to this question
Recommended Posts