UnknownSec Bypass
403
:
/
var
/
www
/
jpsagrisolution
/
cpanel
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
manage_farmaer_anudaan_details1.php
<?php session_start(); require_once "../panelassets/config.php"; $regno = $_POST['regno']; $col5a = $_POST['col5a']; $col5b = $_POST['col5b']; $col6=$_POST['col6']; $col7 = $_POST['col7']; $col8a = $_POST['col8a']; $col8b = $_POST['col8b']; $col9=$_POST['col9']; $col10 = $_POST['col10']; $col11=$_POST['col11']; $col12=$_POST['col12']; $col12a=$_POST['col12a']; $col13=$_POST['col13']; $col14=$_POST['col14']; $col14a=$_POST['col14a']; $col14b=$_POST['col14b']; $col14c=$_POST['col14c']; $col14d=$_POST['col14d']; $col14e=$_POST['col14e']; $col14_1a=$_POST['col14_1a']; $col14_1b=$_POST['col14_1b']; $col14_1c=$_POST['col14_1c']; $col14_1d=$_POST['col14_1d']; $col15=$_POST['col15']; $col16=$_POST['col16']; $col17=$_POST['col17']; $col18=$_POST['col18']; $col18a=$_POST['col18a']; $col18b=$_POST['col18b']; $col18c=$_POST['col18c']; $col19=$_POST['col19']; $col19a=$_POST['col19a']; $col19b=$_POST['col19b']; if($_POST['regdate']=="") { $regdate="1900-01-01"; } else { $uinputdate = explode("-", $_POST['regdate']); $regdate =$uinputdate[2].'-'.$uinputdate[1].'-'.$uinputdate[0]; } $sig=$_POST['sig']; $laname=$_POST['laname']; $creationuserid=$_SESSION["adminid"]; $hdid = $_POST['hdid']; $btnopration = $_POST['btnopration']; $creationdatetime = date("Y-m-d H:m:s"); $message= ""; $cnt=""; if($btnopration=="Save") { $query="delete from anudaanformdetailstb where regno='".$regno."'"; $result = mysqli_query($conn, $query); $query= " insert into anudaanformdetailstb(regno,col5a,col5b,col6,col7,col8a,col8b,col9,col10,col11,col12,col12a,col13,col14,col14a,col14b,col14c,col14d,col14e,col14_1a,col14_1b, col14_1c,col14_1d,col15,col16,col17,col18,col18a,col18b,col18c,col19,col19a,col19b,regdate,sig,laname,isdeleted,creationuserid,creationdatetime) VALUES('{$regno}','{$col5a}','{$col5b}','{$col6}','{$col7}','{$col8a}', '{$col8b}','{$col9}','{$col10}','{$col11}','{$col12}','{$col12a}','{$col13}','{$col14}','{$col14a}','{$col14b}','{$col14c}','{$col14d}','{$col14e}','{$col14_1a}','{$col14_1b}','{$col14_1c}','{$col14_1d}', '{$col15}','{$col16}','{$col17}','{$col18}','{$col18a}','{$col18b}','{$col18c}','{$col19}','{$col19a}','{$col19b}','{$regdate}','{$sig}','{$laname}', '{$notdeleted}','{$creationuserid}','{$creationdatetime}')"; $result = mysqli_query($conn, $query); if($result==true) $message="1"; } else if($btnopration=="Update"){ $query = "select count(0) as count from anudaanfarmerregtb where regno!='".$hdid ."' and mobileno='".$mobileno1."' and isdeleted='".$notdeleted."'"; $result = mysqli_query($conn,$query); while($row = mysqli_fetch_array($result)) { $data["count"]= $row["count"]; } if($data["count"]=="0") { $query= "Update anudaanfarmerregtb set farmername='{$farmername}',fathername='{$fathername}',mobileno='{$mobileno1}',cast='{$cast}', age= '{$age}',gender='{$gender}', stcode='".$state."', distcode='".$district."',blockid='".$block."',villageid='".$villae."', modificationuserid='".$creationuserid."', modificationdatetime ='{$creationdatetime}' where regno='".$hdid."'"; $result = mysqli_query($conn, $query); if($result==true) $message="3"; } else { $message="2"; } } else if($btnopration=="Delete") { //$query="delete from farmerdetailstb where farmerid='".$hdid."'"; $query="Update anudaanfarmerregtb set isdeleted ='".$deleted."' where regno='".$hdid."'"; $result = mysqli_query($conn, $query); if($result==true) $message="4"; } echo json_encode($message); ?>
Copyright © 2025 - UnknownSec