SHARE
TWEET

Untitled

a guest May 20th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php get_header(); ?>
  2.  
  3. <div class="wrap">
  4. <div id="primary" class="content-area">
  5.  
  6. <table border="1">
  7. <tr>
  8. <th><center>ID</center></th>
  9. <th>Time</th>
  10. <th>Doctor</th>
  11. <th>Hospital</th>
  12. <th>Department</th>
  13. <th>Name</th>
  14. <th>Sex</th>
  15. <th>Age</th>
  16. <th>Phone</th>
  17. </tr>
  18.  
  19. <?php
  20. global $wpdb;
  21. $result = $wpdb->get_results("SELECT * FROM wp_appointment_manager");
  22. foreach ($result as $print)
  23. { ?>
  24. <tr>
  25. <td><center><?php echo $print->id; ?> </center></td>
  26. <td><?php echo $print->time; ?> </td>
  27. <td><?php echo $print->doctor; ?> </td>
  28. <td><?php echo $print->hospital; ?> </td>
  29. <td><?php echo $print->department; ?> </td>
  30. <td><?php echo $print->name; ?> </td>
  31. <td><?php echo $print->sex; ?> </td>
  32. <td><?php echo $print->age; ?> </td>
  33. <td><?php echo $print->phone; ?> </td>
  34. </tr>
  35. <?php }
  36. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top