forked from m-pays/magipay
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmagipay.createtable.php
More file actions
29 lines (25 loc) · 1.04 KB
/
magipay.createtable.php
File metadata and controls
29 lines (25 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
//Please run this file to create tables that will be use for magipay transactions.
//Ex. https://your_domain_name.com/Magipay/magipay.createtable.php
include_once("db_connect.php");
$create_magiEpayments = "CREATE TABLE IF NOT EXISTS magiEpayments (
paymentID int(11) unsigned NOT NULL AUTO_INCREMENT,
uniqueID VARCHAR(50) NOT NULL,
invoiceID VARCHAR(50) NOT NULL,
boxID int(11) unsigned NOT NULL DEFAULT '0',
userID varchar(50) NOT NULL DEFAULT '',
amountXMG double(20,8) NOT NULL DEFAULT '0.00000000',
amountUSD double(20,8) NOT NULL DEFAULT '0.00000000',
amountReceived double(20,8) NOT NULL DEFAULT '0.00000000',
payment_received BOOLEAN DEFAULT false,
txID VARCHAR(50) NOT NULL,
txDate datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (paymentID)
)";
$query = mysqli_query($db_conx, $create_magiEpayments);
if ($query === TRUE) {
echo "<h3>magiEpayments TABLE CREATED </h3>";
} else {
echo "<h3>magiEpayments NOT TABLE CREATED </h3>";
}
?>