Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table class=" table-responsive table table-striped table-bordered table-hover ">
- <thead>
- <tr>
- <th>Item #</th>
- <th>Description</th>
- <th>Unit</th>
- <th>Quantity</th>
- </tr>
- </thead>
- <?php
- $servername = "localhost";
- $username = "root";
- $password = "";
- $dbName = "db";
- $port = "3306";
- $conn = new mysqli($servername, $username, $password, $dbName, $port);
- if($conn->connect_error)
- {
- die("Connection Failed: ".$conn->connect_error);
- }
- $sql = "SELECT * FROM product";
- $result1 = $conn->query($sql);
- $result2 = $conn->query($sql);
- ?>
- <tbody>
- <?php
- while ($row = mysqli_fetch_array($result1)) {
- echo "
- <tr>
- <td>" . $row[0] . "</td>
- <td>" . $row[1] . "</td>
- <td>" . $row[2] . "</td>
- <td>0</td>
- </tr>";
- }
- ?>
- </tbody>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement