Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ini_set('display_errors', 1);
- ini_set('display_startup_errors', 1);
- error_reporting(E_ALL);
- mysqli_report(MYSQLI_REPORT_ALL & ~MYSQLI_REPORT_INDEX);
- require_once("dbcontroller.php");
- $db_handle = new DBController();
- $result="SELECT * FROM do_order";
- $resultorder = $db_handle->runSelectQuery($result);
- echo "<table border='1'>
- <tr>
- <th>order</th>
- <th>payment</th>
- <th>generate</th>
- </tr>";
- foreach($resultorder as $row)
- {
- $id = $row['id'];
- echo "<tr>";
- echo "<td>" . $row['order_id'] . "</td>";
- echo "<td>" . $row['payment_type'] . "</td>";
- echo "<td>";
- if (empty($row['tracking_id'])) {
- echo "<form method='post' action='call1.php'>";
- echo "<input type ='hidden' name='id' value='$id'>
- <input type ='hidden' name='order_id' value='".$row['order_id']."'>
- <input type='submit'>
- </form>";
- }
- echo "</td>";
- echo "</tr>";
- }
- echo "</table>";
- //var_dump($row);
- ?>
Add Comment
Please, Sign In to add comment