mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2026-09-03 02:11:38 -04:00
Free stand time for bike purchases is now working.
This commit is contained in:
@@ -262,11 +262,12 @@ $special_volunteer_discount = SPECIAL_VOLUNTEER_DISCOUNT;
|
||||
// Free Stand Time use
|
||||
if(isset($_POST['free_stand_time_use'])) {
|
||||
|
||||
$query = "SELECT date FROM transaction_log WHERE sold_to=" . $_POST['contact_id'] .
|
||||
$query = "SELECT date, DATE_ADD(date, INTERVAL " . $free_stand_time_period . " DAY) AS free_stand_time_period " .
|
||||
"FROM transaction_log WHERE sold_to=" . $_POST['contact_id'] .
|
||||
" AND transaction_type='Bicycles';";
|
||||
$sql = mysql_query($query, $YBDB) or die(mysql_error());
|
||||
|
||||
$results['free_stand_time_period'] = $free_stand_time_period;
|
||||
$sql = mysql_query($query, $YBDB) or die(mysql_error());
|
||||
|
||||
// return all bicycle transactions
|
||||
while ( $result = mysql_fetch_assoc($sql) ) {
|
||||
$results[] = $result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user