I currently need to create a table that auto fills depending on how many entities there is in the database.
I currently have a simple select statement;
$articleID = $_GET['id'];
$stmt = $pdo->query('SELECT * FROM article WHERE articleID = "' . $articleID . '"');
$result = $stmt->fetch(PDO::FETCH_ASSOC);
$stmt2 = $pdo->query('SELECT * FROM comments WHERE artID = "' . $articleID . '"');
$result2 = $stmt2->fetch(PDO::FETCH_ASSOC);
I tried using a Form but that only stores one piece of data.