-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunction.php
More file actions
17 lines (16 loc) · 721 Bytes
/
Copy pathfunction.php
File metadata and controls
17 lines (16 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
include('db.php');
include('query.php');
function comboFill($query){
$database = new db();
$table = $database->get_multi_row($query);
foreach ($table as $row){
echo ' <option value="'.$row["id"].'">'.$row["name"].'</option>';
}
}
function insertReservation(){
$rdate= DateTime::createFromFormat('m/d/Y', $_POST['date'])->format('Y/m/d');
$database->others(sprintf(RESERVE_INSERT,$rdate->format(Y/m/d),$_POST['name'],$_POST['email'],$_POST['number']));
$database->others(RESERVED_PHOTOGRAPHER_INSERT,$_POST['photographer'],$reserve);
}
?>