Guest User

Untitled

a guest
Feb 24th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. <?php
  2. $dateToday = date('Y-m-d');
  3. $checkPatients = $conn->query("SELECT last_checkup FROM `prenatal_checkup` WHERE itr_no = '$_GET[id]' limit 1");
  4. $fetchPatients = $checkPatients->fetch_array();
  5. if($fetchPatients['last_checkup'] >= (date('m', strtotime('+1 month')) . '/01/' . date('Y', strtotime('+1 month')))){
  6. echo '<div class="alert alert-danger" role="alert" style="font-weight: bold; margin-bottom:-13px;"><p>
  7. '.ucfirst($_GET['firstname'])." ".ucfirst($_GET['lastname']). ' was already estimated her date of confinement.
  8. Adding new data will be available again after one month. Please click the record below to proceed to next check up.</p></div>';
  9. }
  10. else
  11. {
  12. ?>
  13. <button class = "btn btn-primary" id = "show_com"><i class = "glyphicon glyphicon-plus">ADD</i></button>
  14. <?php
  15. }
  16. ?>
Add Comment
Please, Sign In to add comment