Edit

[insert_php]
$conn = mysqli_connect(“theftfound.com”,”theftfou”,”arR37e?x#eNp”,”theftfou_blacklist”) or die (“Error in connecting Database!..”);

if(isset($_GET[‘id’])){
$id = isset($_GET[“id”]) ? $_GET[“id”] : ”;
//echo $id;
$stmt = $conn->prepare(“SELECT * FROM lost WHERE id = ?”);
$stmt->bind_param(“s”, $id);
$stmt->execute();
$result = $stmt->get_result();
$row = $result->fetch_assoc();

//print_r($row);
//echo $row ;
//echo $row;
$id_u= $row[id];
$imei = $row[imei];
$mname = $row[mname];
$pamount = $row[pamount];
$pname = $row[pname];
$address = $row[address];
$cnumber = $row[cnumber];
$nic = $row[‘nic’];
}
[/insert_php]

Id :

imei :

Model :

Prize :

Name :

Address :

Contact :

NIC :

[insert_php]
$conn = mysqli_connect(“theftfound.com”,”theftfou”,”arR37e?x#eNp”,”theftfou_blacklist”) or die (“Error in connecting Database!..”);

if(isset($_POST[‘locate’])){
$id = isset($_POST[“id”]) ? $_POST[“id”] : ”;
$imei = isset($_POST[“imei”]) ? $_POST[“imei”] : ”;
$mname = isset($_POST[“model”]) ? $_POST[“model”] : ”;
$pamount = isset($_POST[“prize”]) ? $_POST[“prize”] : ”;
$pname = isset($_POST[“pname”]) ? $_POST[“pname”] : ”;
$address = isset($_POST[“address”]) ? $_POST[“address”] : ”;
$cnumber = isset($_POST[“contact”]) ? $_POST[“contact”] : ”;
$nic = isset($_POST[“nic”]) ? $_POST[“nic”] : ”;

//echo $id;

$sql= “UPDATE `lost` SET `imei` = (‘$imei’), `mname` = (‘$mname’), `pamount` = (‘$pamount’), `pname` = (‘$pname’), `address` = (‘$address’), `cnumber` = (‘$cnumber’) WHERE `lost`.`id` = (‘$id’)”;

if(mysqli_query($conn,$sql)){

echo ““;
// $nic_u=$nic;
$url = “http://theftfound.com/edit-with-nic/?nic_u=$nic”;

echo ‘‘;
echo ‘‘; exit;

}else{
echo “failed!!!!”.mysqli_error($conn);
}

}
[/insert_php]