Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include('dbconnect.php');
- $stmt = $pdo->query('SELECT * FROM cars');
- echo "<table border='1'>";
- echo "<tr>";
- echo "<td><b>Make</b></td>";
- echo "<td><b>Model</b></td>";
- echo "<td><b>Description</b></td>";
- echo "<td><b>Milage</b></td>";
- echo "</tr>";
- while ($row = $stmt->fetch()) {
- echo "<tr>";
- echo "<td>".$row['Make'] . "</td>";
- echo "<td>".$row['Model'] . "</td>";
- echo "<td>".$row['Description'] . "</td>";
- echo "<td>".$row['Milage'] . "</td>";
- echo "</tr>";
- }
- echo "</table>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement