-
Notifications
You must be signed in to change notification settings - Fork 0
/
payTo.php
26 lines (23 loc) · 850 Bytes
/
payTo.php
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
<?php
// session_start();
require('../server/db_conn.php');
$email = $_SESSION['LOGGED_IN_EMAIL'];
$username = $_SESSION['LOGGED_IN_USERNAME'];
$phone = $_SESSION['LOGGED_IN_PHONE'];
//lets fetch the number the admin set to the transaction
$numberQuery = "SELECT * FROM transactionsupdate WHERE Email_Address = ? AND User_Name = ? AND Phone_No = ?;";
$numberquery_stmt = $mysqli->prepare($numberQuery);
$numberquery_stmt->bind_param('ssi', $email, $username, $phone);
$numberquery_stmt->execute();
$numberResult = $numberquery_stmt->get_result();
if ($numberResult->num_rows > 0) {
$Rowwnumber = $numberResult->fetch_assoc();
$confirmation = $Rowwnumber['PayTo'];
if ($confirmation == 0 || $confirmation == '') {
$PayTo = 'Please wait...!';
} else {
$PayTo = $Rowwnumber['PayTo'];
}
} else {
$PayTo = '';
}