- Joined
- Jul 21, 2017
- Posts
- 640
- Reaction
- 658
- Points
- 284
Patulong sa mga web developer please para lang po sa thesis. Gusto ko po sana disable yung date na select na ng user maximum of 3 reservation in same date. Example If meron na 3 reservation in same date dapat po naka disbable na sya hindi na po clickable.
Please patulong po checking po kasi ngaung week ng system required po kasi yan Thankyou
Please patulong po checking po kasi ngaung week ng system required po kasi yan Thankyou
- Database
CREATE TABLE `reservation` (
`rid` int(11) NOT NULL,
`r_date` date NOT NULL,
`r_time` time NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1; - dbcon.php
<?php
$con = mysqli_connect("localhost","root","","catering");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
?> - html code
<div class="form-group">
<label class="col-lg-5 control-label">Date of Event</label>
<div class="col-lg-3">
input type="text" id="datepicker" class="form-control" name="date" required>
<span class = "label label-warning">Check if date is available</span>
</div>
</div> - javascript
$( "#datepicker" ).datepicker({ minDate: 14}); //disable 2 weeks from current date