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.118.19.89
Current Path : /var/www/html/reva/ |
| Current File : /var/www/html/reva/enableht.php |
<?php
include("/var/www/config.php");
$servername = SERVERNAME;
$username = USERNAME;
$password = PASSWORD;
$conn = new mysqli($servername,$username,$password);
if(!$conn)
{
die("Connection failed: " . mysqli_connect_error());
}
$query="update logisys3_reva.candsum c,logisys3_reva.erpdata e set
c.ffreshexam=e.fexamno,
c.fappearb='A',
c.fexamfeeb=1,
c.frecptdateb=date_format(now(),'%Y-%m-%d'),
c.ftotalfee=1,
c.frecptdate=date_format(now(),'%Y-%m-%d')
where c.fregno=e.fregno and e.fexamno='B'
and c.fyear='2020' and c.fexamtype='1'";
$result = mysqli_query($conn, $query);
$query="update logisys3_reva.candsum c,logisys3_reva.erpdata e set
c.ffreshexam=e.fexamno,
c.fappeard='A',
c.fexamfeed=1,
c.frecptdated=date_format(now(),'%Y-%m-%d'),
c.ftotalfee=1,
c.frecptdate=date_format(now(),'%Y-%m-%d')
where c.fregno=e.fregno and e.fexamno='D'
and c.fyear='2020' and c.fexamtype='1'";
$result = mysqli_query($conn, $query);
$query="update logisys3_reva.candsum c,logisys3_reva.erpdata e set
c.ffreshexam=e.fexamno,
c.fappearf='A',
c.fexamfeef=1,
c.frecptdatef=date_format(now(),'%Y-%m-%d'),
c.ftotalfee=1,
c.frecptdate=date_format(now(),'%Y-%m-%d')
where c.fregno=e.fregno and e.fexamno='F'
and c.fyear='2020' and c.fexamtype='1'";
$result = mysqli_query($conn, $query);
$query="update logisys3_reva.candsum c,logisys3_reva.erpdata e set
c.ffreshexam=e.fexamno,
c.fappearh='A',
c.fexamfeeh=1,
c.frecptdateh=date_format(now(),'%Y-%m-%d'),
c.ftotalfee=1,
c.frecptdate=date_format(now(),'%Y-%m-%d')
where c.fregno=e.fregno and e.fexamno='h'
and c.fyear='2020' and c.fexamtype='1'";
$result = mysqli_query($conn, $query);
$query="update logisys3_reva.candsum c,logisys3_reva.erpdata e set
c.ffreshexam=e.fexamno,
c.fappearj='A',
c.fexamfeej=1,
c.frecptdatej=date_format(now(),'%Y-%m-%d'),
c.ftotalfee=1,
c.frecptdate=date_format(now(),'%Y-%m-%d')
where c.fregno=e.fregno and e.fexamno='J'
and c.fyear='2020' and c.fexamtype='1'";
$result = mysqli_query($conn, $query);
$query="update logisys3_reva.canddet c,logisys3_reva.erpdata e set
c.fpresent='P'
where c.fregno=e.fregno and c.fexamno=e.fexamno
and c.fyear='2020' and c.fexamtype='1'";
$result = mysqli_query($conn, $query);
echo "Affected rows: " . mysqli_affected_rows($conn);
mysqli_close($conn);
?>
|