Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- var saldo = "<?php
- $db_host = "localhost";
- $db_name = "steam";
- $db_username = "dikkeboktor";
- $db_password = "dikkeVETTEboktor";
- $conn = mysqli_connect($db_host, $db_username, $db_password, $db_name);
- if (!$conn) {
- header('Location: error/db_connect.php');
- }
- require 'steamauth/userinfo.php';
- $u_id = $steamprofile['steamid'];
- $sql = "SELECT saldo, level, experience FROM users WHERE id = '$u_id'";
- $result = $conn->query($sql);
- if ($result->num_rows > 0) {
- // output data of each row
- while($row = $result->fetch_assoc()) {
- echo $row["saldo"];
- }
- } else {
- }
- ?>";
- $("#saldobutton").text("Saldo: " + saldo);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement