Server IP : 192.124.249.33 / Your IP : 66.248.200.33 Web Server : Apache System : Linux 141.134.66.148.host.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els6.x86_64 #1 SMP Fri Sep 13 13:42:20 UTC 2024 x86_64 User : tarangglobal ( 1001) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/tarangglobal/public_html/cyber/admin/ |
Upload File : |
<?php require_once('pdoconfig.php'); $catid=$_REQUEST['catid']; $act=$_REQUEST['act']; $contid=$_REQUEST['contid']; $party=$_REQUEST['party']; $qrate=$_REQUEST['qrate']; $fdate=$_REQUEST['fdate']; $remark=$_REQUEST['remark']; $fdate1=date('Y-m-d',strtotime($fdate)); if($act == "add") { //echo "insert into contract_attendee set filled_date='$fdate1',cont_id='$contid',party_id='$party',rate_for_cont='$qrate',remarks='$remark'"; //die(); $sql="insert into contract_attendee set filled_date=?,cont_id=?,party_id=?,rate_for_cont=?,remarks=?"; $arr=array($fdate1,$contid,$party,$qrate,$remark); $res=$action->insertp($sql,$arr); if($res>0) { ?> <script> alert("Data Save successfully"); window.location.href="sanjay.php?contid=<?=$contid?>"; </script> <?php } } else if($act == "edit") { $sql="update contract_attendee set filled_date=?,cont_id=?,party_id=?,rate_for_cont=?,remarks=? where cont_attend_id=?"; $arr=array($fdate1,$contid,$party,$qrate,$remark,$catid); $res=$action->updatep($sql,$arr); if($res) { ?> <script> alert("Data update successfully"); window.location.href="sanjay.php?contid=<?=$contid?>"; </script> <?php } } else if($act == "del") { $sql="delete from contract_attendee where cont_attend_id=?"; $arr=array($catid); $res=$action->deletep($sql,$arr); if($res) { ?> <script> alert("Data delete successfully"+"<?=$catid;?>"); window.location.href="sanjay.php?contid=<?=$contid?>"; </script> <?php } } ?>Private