I am given the ‘index’ page as it would be called & that is where my info is coming from. This stores the info into my database, but I need to display it into a table. Can you help me? Please and thank you.
[php]<?php
$description = filter_input(INPUT_POST, ‘description’);
$quantity = filter_input(INPUT_POST, ‘quantity’);
$weight = filter_input(INPUT_POST, ‘weight’);
$price = filter_input(INPUT_POST, ‘price’);
require_once('database.php');
$query = 'INSERT INTO items (description, quantity, weight, price)
VALUES (:description, :quantity, :weight, :price)';
$statement = $db->prepare($query);
$statement->bindValue(':description', $description);
$statement->bindValue(':quantity', $quantity);
$statement->bindValue(':weight', $weight);
$statement->bindValue(':price', $price);
$statement->execute();
$statement->closeCursor();
include('homework2.php');
?>[/php]