Guest User

fefefef

a guest
Nov 23rd, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. <?php
  2. ini_set('display_errors', 1);
  3. ini_set('display_startup_errors', 1);
  4. error_reporting(E_ALL);
  5. mysqli_report(MYSQLI_REPORT_ALL & ~MYSQLI_REPORT_INDEX);
  6.  
  7. require_once("dbcontroller.php");
  8. $db_handle = new DBController();
  9.  
  10.  
  11. $result="SELECT * FROM do_order";
  12. $resultorder = $db_handle->runSelectQuery($result);
  13.  
  14. echo "<table border='1'>
  15. <tr>
  16. <th>order</th>
  17. <th>payment</th>
  18. <th>generate</th>
  19. </tr>";
  20.  
  21.  
  22. foreach($resultorder as $row)
  23. {
  24. $id = $row['id'];
  25. echo "<tr>";
  26. echo "<td>" . $row['order_id'] . "</td>";
  27. echo "<td>" . $row['payment_type'] . "</td>";
  28.  
  29. echo "<td>";
  30. if (empty($row['tracking_id'])) {
  31. echo "<form method='post' action='call1.php'>";
  32. echo "<input type ='hidden' name='id' value='$id'>
  33. <input type ='hidden' name='order_id' value='".$row['order_id']."'>
  34. <input type='submit'>
  35. </form>";
  36. }
  37. echo "</td>";
  38.  
  39.  
  40. echo "</tr>";
  41. }
  42. echo "</table>";
  43.  
  44. //var_dump($row);
  45.  
  46. ?>
Add Comment
Please, Sign In to add comment