Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Feb 24th, 2018 49 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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. ?>
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
 
Top