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 : 3.141.192.174
<?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.FAPPDATE as FDATE,kp.fname
from servtran 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 servtran set FPAYDATE='{$txnid}',FPAYSTATUS='success',
FPAYREMARKS = '{$txnid}', FPAYDATE = now(),
FTRANID = '{$txnid}',
FPAYTYPE = '{$fname}'
where fappno='{$productinfo}'";
//var_dump($update);
$result = $conn->query($update);
echo $regno;
echo "<br/>";
}
}
?>
|