Show sourcecode
The following files exists in this folder. Click to view.
admin.php
bilder/
checkUpdates.php
confirmPassword.php
confirmSignIn.php
createadmin.php
endScreen.php
getBoard.php
getChat.php
getHand.php
getTurnPlayer.php
lobbies.php
logIn.php
play.php
playCard.php
signIn.php
start.php
startsida.php
style.css
tables.php
update.php
updatePassword.php
waitInfo.php
waitingRoom.php
getChat.php
23 lines UTF-8 Windows (CRLF)
<?php
/** @var PDO $dbconn */
include ("../dbconnection.php");
if (isset($_GET["gameid"])) {
$sql = "SELECT * FROM ChatMessages WHERE gameid=?";
$stmt = $dbconn->prepare($sql);
$data = array($_GET["gameid"]);
$stmt->execute($data);
while ($res = $stmt->fetch(PDO::FETCH_ASSOC)) {
echo "<span>";
// Skriv ut bilden tillhörande meddelandet om det finns en
if ($res["img"]) {
echo "<img src='" . $res["img"] . "'>";
}
echo $res["text"] . "</span>";
}
}
?>