Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="row">
- <div class="label">Appointment Type:</div><!-- end .label-->
- <div class="input">
- <select input type="text" id="Booking" class="detail" name="ApptType" value="">
- <option value="">Appointment for</option>
- <option value="Consultation">Consultation</option>
- <option value="Photo Shoot">Photo Shoot</option>
- <option value="Dress Fitting">Dress Fitting</option>
- </select>
- </div><!-- end .input -->
- </div><!-- end .row -->
- <div class="row">
- <div class="label">Select Date and Time:</div><!-- end .label-->
- <div class="input">
- <input type="text" id="DateTime" class="detail" name="DateTime" value="">
- </div><!-- end .input-->
- </div><!-- end .row -->
- $validate = mysql_query("SELECT FROM Appointment (Appt_DateTime) where $apptdatetime !== $bookingdatetime");
- if (!$validate) {
- echo "Enter Valid Date";
- } else {
- return $sql = mysql_query("INSERT INTO Appointment (Client_ID,Svc_ID,Appt_DateTime)
- VALUES ('$_POST[ClientID]','$_POST[ApptType]','".date('Y-m-d H:i:s', strtotime($_POST[DateTime]))."')");
- }
- mysql_query($conn);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement