UnknownSec Bypass
403
:
/
var
/
www
/
jpsagrisolution
/
epanel
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
manage_other_farmer_details.php
<?php session_start(); require_once "../panelassets/config.php"; $state = $_POST['state']; $district = $_POST['district']; $block = $_POST['block']; $villae=$_POST['villagename']; $farmername = $_POST['farmername']; $mobileno1 = $_POST['mobileno1']; $hdidentity = $_POST['hdidentity']; $creationuserid=$_SESSION["userid"]; $hdid = $_POST['hdid']; $btnopration = $_POST['btnopration']; $creationdatetime = date("Y-m-d H:m:s"); $message= ""; $cnt=""; $query = "select count(0) as count from farmersurveytb where mobileno1='".$mobileno1."' and identifier='".$hdidentity."' and isdeleted='".$notdeleted."'"; $result = mysqli_query($conn,$query); while($row = mysqli_fetch_array($result)) { $message= $row["count"]; } if($btnopration=="Save") { if($message=="0") { $query= " insert into farmersurveytb(farmername,mobileno1,identifier,stcode,distcode,blockid,villageid,isdeleted,creationuserid,creationdatetime) VALUES('{$farmername}','{$mobileno1}','{$hdidentity}', '{$state}','{$district}','{$block}','{$villae}','{$notdeleted}','{$creationuserid}','{$creationdatetime}')"; $result = mysqli_query($conn, $query); if($result==true) $message="1"; } else { $message="2"; } } else if($btnopration=="Update"){ $query = "select count(0) as count from farmersurveytb where farmerid!='".$hdid ."' and mobileno1='".$mobileno1."' and identifier='".$hdidentity."' and isdeleted='".$notdeleted."'"; $result = mysqli_query($conn,$query); while($row = mysqli_fetch_array($result)) { $data["count"]= $row["count"]; } if($data["count"]=="0") { $query="Update farmersurveytb set farmername='{$farmername}',mobileno1='{$mobileno1}', stcode='".$state."', distcode='".$district."',blockid='".$block."',villageid='".$villae."', modificationuserid='".$creationuserid."', modificationdatetime ='{$creationdatetime}' where farmerid='".$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 farmerdetailstb set isdeleted ='".$deleted."' where farmerid='".$hdid."'"; $result = mysqli_query($conn, $query); if($result==true) $message="4"; } echo json_encode($message); ?>
Copyright © 2025 - UnknownSec