Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 18.226.169.169
<?php
ini_set('max_execution_time', 600);
include("/var/www/config.php");
$servername = SERVERNAME;
$username = USERNAME;
$password = PASSWORD;
$dbname = "logisys3_kus";
/*$servername = "localhost";
$username = "root";
$password = "";
$dbname = "resultsg_kus";*/
$conn = new mysqli($servername, $username, $password, $dbname);
$query = "select ac.fappno, ac.fregno, ac.FPAYSTATUS as FPAYMENTSTATUS,
ac.FPAYTYPE as FPAYGATEWAY, kp.ftranid,
ac.FREGDATE as FDATE,kp.fname
from dctran ac
inner join pg_txn kp on
ac.fappno = kp.fappno
where ifnull(ac.FPAYSTATUS,'') <> 'success'";
$resultm = $conn->query($query);
if (mysqli_num_rows($resultm) > 0)
{
while($row = mysqli_fetch_assoc($resultm))
{
$productinfo = $row['fappno'];
$regno = $row['fregno'];
$paytm = $row['FPAYGATEWAY'];
$fname = $row['fname'];
$txnid = $row['ftranid'];
//$firstname = "paytm";
$update="update dctran set FPAYTXID='{$txnid}',FPAYSTATUS='success',
FPAYREMARKS = '{$txnid}', FPAYDATE = now(),
FPAYTYPE = '{$fname}'
where fappno='{$productinfo}'";
//var_dump($update);
$result = $conn->query($update);
echo $regno;
echo "<br/>";
}
}
?>
|