Ejemplo n.º 1
0
function getComments($userid, $mysqli, $steamid)
{
    if ($userid == null) {
        $userid = $steamid;
    }
    $query = "SELECT steamid, comment, pageid FROM comments WHERE pageid='{$userid}'";
    $result = mysqli_query($mysqli, $query);
    while ($row = mysqli_fetch_array($result)) {
        $comment = $row['comment'];
        $steamid = $row['steamid'];
        $data = convertSteamid($steamid);
        echo '<li class="box" >
    <img style="border:1px solid rgb(63,149,218);" src="' . $data['imageurl'] . '"/>
     <a href="http://www.my-csgo.de/profil.php?id=' . $steamid . '">' . $data['name'] . '</a> wrote: <br />
    ' . $comment . '
</li>';
    }
}
Ejemplo n.º 2
0
<?php

session_start();
include 'db_connect.php';
include 'steamapi.php';
$userid = $_POST['ids'];
if ($userid == null) {
    $userid = $steamid;
}
$query = "SELECT steamid, comment, pageid FROM comments WHERE pageid='{$userid}'";
$result = mysqli_query($mysqli, $query);
while ($row = mysqli_fetch_array($result)) {
    $comment = $row['comment'];
    $steamid = $row['steamid'];
    $data = convertSteamid($steamid);
    echo '<li class="box" >
    <img style="border:1px solid rgb(63,149,218);" src="' . $data['imageurl'] . '"/>
    ' . $data['name'] . ' wrote: <br />
    ' . $comment . '
</li>';
}