mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2026-09-03 10:21:38 -04:00
Added payment_type.
This commit is contained in:
@@ -4,6 +4,7 @@ require_once('../Connections/YBDB.php');
|
||||
mysql_select_db($database_YBDB, $YBDB);
|
||||
|
||||
|
||||
// update whether paid or not
|
||||
if(isset($_POST['paid'])) {
|
||||
if ($_POST['paid'] == 1) {
|
||||
|
||||
@@ -18,4 +19,14 @@ mysql_select_db($database_YBDB, $YBDB);
|
||||
}
|
||||
}
|
||||
|
||||
// update payment type
|
||||
if(isset($_POST['payment_type'])) {
|
||||
|
||||
$query = 'UPDATE transaction_log SET payment_type="' .
|
||||
$_POST['payment_type'] . '" WHERE transaction_id=' .
|
||||
$_POST['transaction_id'] . ";";
|
||||
$result = mysql_query($query, $YBDB) or die(mysql_error());
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user