Added payment_type.

This commit is contained in:
Jonathan Rosenbaum
2014-12-29 07:53:41 +00:00
parent baf8f61d9e
commit f72f022811
6 changed files with 55 additions and 19 deletions
+11
View File
@@ -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());
}
?>