mam problem z ładowaniem poniższego skryptu.
Problem polega na tym, że czasami po prostu nie działa. Strona jest pusta i trzeba ją odświeżyć by znowu zadziałał.
Skrypt:
Odniesienie:
$stmt = $pdo->prepare("SELECT id, defender, coins, defender_avatar FROM rpsbattles WHERE finished = 'NO' ORDER BY coins DESC"); $stmt -> execute(); while($row = $stmt -> fetch(PDO::FETCH_ASSOC)){ $defender = $row['defender']; $coinsRPS = $row['coins']; $avatar = $row['defender_avatar']; $id = $row['id']; echo "<tr><th style='width: 340px;font-weight: normal !important;'><img src='".$avatar."' style='width:27px;margin-top: -3px;padding-right: 6px;'>".$defender."</th><th style='font-weight: normal !important;'>".$coinsRPS."|".$id."</th><th><form method='POST'><input type='hidden' name='newID' id='newID' value='$id'><button type='button' name='graj' class='btn btn-primary btn-sm' data-toggle='modal' data-target='.rpsBattle' style='margin-top:-4px;margin-bottom:-3px;'><h5>GRAJ</h5></button></form></th>"; }