--- layout: slides title: Security scripts: [ ./script.js ] styles: [ ../reveal.js/theme/blood.css, ../reveal.js/zenburn.css, ./style.css ] ---
<?php
$sql = "SELECT comment FROM comments";
$result = $conn->query($sql);
// output data of each row
while($row = $result->fetch_assoc()) {
echo $row["comment"] . "<br>";
}
?>
<b>hello</b>
?
<p class="comments">
This sucks<br>
First!<br>
<b>hello.</b><br>
</p>̿
<script>
<?php
$sql = "SELECT comment FROM comments";
$result = $conn->query($sql);
// output data of each row
while($row = $result->fetch_assoc()) {
echo htmlspecialchars($row["comment"]); . "<br>";
}
?>
Source: w3schools
<
-> <