Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $conn = pg_connect("host=database.dcs.aber.ac.uk
- port=5432 dbname=teaching user=csguest password=rohishe");
- echo "<table border='1'>";
- foreach ($basketArray as $item)
- {
- $res = pg_query ($conn, "select * from CSGames where refnumber = " . $item. "");
- $b = pg_fetch_array ($res)
- echo "<tr>";
- echo "<td>" . $b["title"] . "</td>";
- echo "<td>" . $b["price"] . "</td>";
- echo "<td>" . $b["description"] . "</td>";
- echo "<td>" . "<a href=listings.php?action=delete&refnumber=" . $b['refnumber'] . ">Remove</a>" . "</td>";
- echo "</tr>";
- }
- echo "</table>\n";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement