Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $getchat = $db->prepare("SELECT * FROM Chat ORDER BY Date DESC");
- $getchat->execute();
- $getchat1 = $getchat->get_result();
- while($row2 = mysqli_fetch_array($getchat1)){
- $chatdisplay .= "<div style='border: 2px solid hsl(0, 100%, 50%);
- -webkit-animation: rainbow 5s infinite alternate;border-left: 0px; border-
- right: 0px;'><p style='margin-left: 3%'>{$row2['Steamname']}</p><img
- style='margin-left: 5%; border: solid 2px black' src='{$row2['Avatar']}'><p
- style='color: black; margin-left: 5%;'>{$row2['Text']}</p></div> ";
- }
- $getchat->close();
- <div>
- <?php echo $chatdisplay ?>
- </div>
Add Comment
Please, Sign In to add comment