forked from root/threadr.lostcave.ddnss.de
Merge branch 'master' of https://lostcave.ddnss.de/git/root/web-deployment
commit
36c276f682
|
@ -3,8 +3,8 @@ $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(array("id"=>$id));
|
||||||
foreach($statement->fetchAll() as $ROW) {
|
foreach($statement->fetchAll() as $ROW) {
|
||||||
echo "<section>"
|
echo "<section>"
|
||||||
echo "<h1>$ROW[id]</h1>"
|
echo "<h1>$ROW[id]</h1>"
|
||||||
|
|
Loading…
Reference in New Issue