| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/HostingSpaces/admin/plainmotors.net/wwwroot/dashboard/ |
Upload File : |
<?php
include "general2.php";
include "connect.php";
echo "nosa";
$accountName = $_POST['accountName'];
$accountNumber = $_POST['accountNumber'];
$bankName = $_POST['bankName'];
echo $accountName ;
echo $accountNumber ;
echo $bankName ;
$email = $_SESSION['email'];
echo $email;
$fullname =$_SESSION['fullname'];
//echo "james";
//check if phonenumber already exists
$query = "Select email from plainmotorsbankaccounts where email ='$email'";
//echo $query;
$response =getQuery1($query);
//echo $response;
//die();
if ($response == "#"){
// echo $phonenumber;
echo "kate";
if (($email !="") && ($fullname != "") ){
$query ="insert into plainmotorsbankaccounts (email,fullname,accountname,accountnumber,bankname) VALUES
('$email','$fullname','$accountName','$accountNumber','$bankName')";
echo $query;
}}
else{
if (($email !="") && ($fullname != "") ){
$query ="update set accountname='$accountName',accountnumber='$accountNumber',bankname='$bankName' where email ='$email'";
echo $query;
}
}
$queryresponse = updateQuery($query);
header('Location: /dashboard/index.php?err=3');
?>