Dobrý den, mohl by mi někdo prosím poradit co mám špatně, aby se po přihlášení přes Steam zobrazily pouze hodnoty příhlášené osoby pomocí SteamID, které jsou v MySQL databázi. Aktuálně se bez problému přihlásím, ale žadné hodnoty z mysql databáze se nezobrazí. Děkuji.
celé PHP
<?php
require ('steamauth/steamauth.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="Windows-1250">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Test</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
.table {
table-layout: fixed;
word-wrap: break-word;
}
</style>
</head>
<body style="background-color: #EEE;">
<div class="container" style="margin-top: 30px; margin-bottom: 30px; padding-bottom: 10px; background-color: #FFF;">
<h1>Login Test</h1>
<span class="small pull-left" style="padding-right: 10px;">Administrace 1.0</span>
<hr>
<?php
if(!isset($_SESSION['steamid'])) {
echo "<div style='margin: 30px auto; text-align: center;'<br>";
loginbutton();
echo "</div>";
} else {
include ('steamauth/userInfo.php');
?>
<br>
<br>
<span style='float:right;'><?php logoutbutton(); ?></span>
<div class="content-loader">
<table cellspacing="0" width="100%" id="example" class="table table-striped table-hover table-responsive">
<thead>
<tr>
<th>steamId</th>
<th>points</th>
<th>lastDisplayName</th>
<th>lastUpdated</th>
</tr>
</thead>
<tbody>
<?php
require_once 'dbconfig.php';
$steamId = $_SESSION['steamid'];
$steamprofile['steamid'] = $_SESSION['steam_steamid'];
$stmt = $db_con->prepare('SELECT `steamId`, `points`, `lastDisplayName`, `lastUpdated`
FROM `ranks`
WHERE `steamId` = ?
', array($steamprofile['steamid']));
$stmt->execute();
while($row=$stmt->fetch(PDO::FETCH_ASSOC))
{
?>
<tr>
<td><?php echo $row['steamId']; ?></td>
<td><?php echo $row['points']; ?></td>
<td><?php echo $row['lastDisplayName']; ?></td>
<td><?php echo $row['lastUpdated']; ?></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<?php
}
?>
<hr>
<div class="pull-right">
<i>2016</i>
</div>
</div>
</body>
</html>