<?php
ob_start();
session_start();
include("../../../config.php");
$dte=date('d/m/Y');
$added_on=date('Y-m-d h:i:s');
/* $added_by=$_SESSION['userid']; */
if(isset($_GET['pge']) && $_GET['pge']=='pdf'){
$blkpdf="";
$sqlBl1u="UPDATE pataward SET ";
$sqlBl1u=$sqlBl1u."pdf='".$blkpdf."'";
$sqlBl1u=$sqlBl1u." where id='".$_GET['delid']."'";
$UsQuery=mysqli_query($conn,$sqlBl1u);
}else
if(isset($_GET['pge']) && $_GET['pge']=='img1'){
$blkpdf="";
$sqlBl1u="UPDATE pataward SET ";
$sqlBl1u=$sqlBl1u."img1='".$blkpdf."'";
$sqlBl1u=$sqlBl1u." where id='".$_GET['delid']."'";
$UsQuery=mysqli_query($conn,$sqlBl1u);
}else
if(isset($_GET['pge']) && $_GET['pge']=='img2'){
$blkpdf="";
$sqlBl1u="UPDATE pataward SET ";
$sqlBl1u=$sqlBl1u."img2='".$blkpdf."'";
$sqlBl1u=$sqlBl1u." where id='".$_GET['delid']."'";
$UsQuery=mysqli_query($conn,$sqlBl1u);
}
else
if(isset($_GET['pge']) && $_GET['pge']=='img3'){
$blkpdf="";
$sqlBl1u="UPDATE pataward SET ";
$sqlBl1u=$sqlBl1u."img3='".$blkpdf."'";
$sqlBl1u=$sqlBl1u." where id='".$_GET['delid']."'";
$UsQuery=mysqli_query($conn,$sqlBl1u);
}
if($UsQuery){
echo 1;
}else{
echo 2;
}
?> |