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