maybe i fixed it

master
Jakob 2020-03-08 15:20:06 +01:00
parent e7949e4bfb
commit f64f00685a
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ $pdo = new PDO('mysql:host=localhost;dbname=web', 'webstuff', 'Schei// auf Pa$$w
$error = false; $error = false;
$error_message = ""; $error_message = "";
if (!$error) { if (!$error) {
$statement = $pdo->prepare("SELECT * FROM posts WHERE board_id=$id ORDER BY post_time asc"); $statement = $pdo->prepare("SELECT * FROM posts WHERE board_id='$id' ORDER BY post_time asc");
$statement->execute(); $statement->execute();
foreach($statement->fetchAll() as $ROW) { foreach($statement->fetchAll() as $ROW) {
echo "<section>" echo "<section>"