'; } function buildloggedoutheader() { require('core/config.php'); if(isset($_SESSION['user'])) { $query = $con->prepare('SELECT money FROM users WHERE id=:id'); $query->bindParam(':id', $id); $query->execute(); $money = $query->fetch(PDO::FETCH_ASSOC)["money"]; $currencyIcon = "$"; if ($money < 1000000) { // Anything less than a million $money = $currencyIcon.number_format($money); } else if ($money < 1000000000) { // Anything less than a billion $money = $currencyIcon.number_format($money / 1000000, 1) . 'M'; } else { // At least a billion $money = $currencyIcon.number_format($money / 1000000000, 1) . 'B'; } // messy shit sorry mario1 fix it urself :trol: $rightside = ' '; } else { $rightside = ' '; } echo ''; echo ' '; } } ?>