MMCT TEAM
Server IP : 145.79.210.100  /  Your IP : 216.73.216.101
Web Server : LiteSpeed
System : Linux in-mum-web1954.main-hosting.eu 5.14.0-570.26.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 16 09:12:04 EDT 2025 x86_64
User : u474798400 ( 474798400)
PHP Version : 7.4.33
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u474798400/domains/excentia.in/public_html/admin/upload_image/../include/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u474798400/domains/excentia.in/public_html/admin/upload_image/../include/../allajax.php
<?php
session_start();
include('config.php');
// $conn = new mysqli("localhost","root","","salient");

// // Check connection
// if ($conn -> connect_errno) {
//   echo "Failed to connect to MySQL: " . $conn -> connect_error;
//   exit();
// }

$action = $_REQUEST['action'];
switch($action){

case'login':

 $query=mysqli_query($conn,"select * from tbl_user where usr_name='".mysqli_real_escape_string($conn,$_POST['user_name'])."' and usr_pass='".md5(mysqli_real_escape_string($conn,$_POST['login_password']))."' and status=1");
$row=mysqli_fetch_array($query);
//$num=mysqli_num_rows();
 
if(mysqli_num_rows($query)>0){
 $_SESSION['user_id']= $row['usr_id'];  
 
  
  echo "<script language='javascript' type='text/javascript'> location.href='dashboard.php' </script>";
  //echo 'successful';
}
else{
  echo '<span style="color:red;">Email or password is incorrect</span>';
}
break;


case'addbanner':
 $filename = $_FILES["pro_img"]["name"];
$tempname = $_FILES["pro_img"]["tmp_name"]; 

$image_name=mt_rand(100000,999999).'_t'.$filename;

$folder = 'upload_image/'.$image_name;

move_uploaded_file($tempname, $folder);

$filename1 = $_FILES["pro_img1"]["name"];
$tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

$image_name1=mt_rand(100000,999999).'_t'.$filename1;

$folder1 = 'upload_image/'.$image_name1;

move_uploaded_file($tempname1, $folder1);
    $insert=mysqli_query($conn,"insert into tbl_slider (title,title1,desk_img,mob_img) values ('".$_POST['title']."','".$_POST['title1']."','".$image_name."','".$image_name1."')");

//echo "insert into  tbl_team (name,designation,image,description) values ('".$_POST['title']."','".$_POST['title2']."','".$image_name."','".$_POST['firstcontent']."')";
if($insert){
    echo 1;
}
break;


case'editbanner':
$sel=mysqli_query($conn,"select desk_img,mob_img from tbl_slider where id='".$_POST['id']."'");
$result=mysqli_fetch_object($sel);
$timage=$result->desk_img; 
$timage1=$result->mob_img; 
if($_FILES["pro_img"]["name"]==""){
 $image_name= $timage;  
}
else{
 $filename = $_FILES["pro_img"]["name"];
$tempname = $_FILES["pro_img"]["tmp_name"]; 

$image_name=mt_rand().'_t'.$filename;
$folder = 'upload_image/'.$image_name;

move_uploaded_file($tempname, $folder);
} 

if($_FILES["pro_img1"]["name"]==""){
 $image_name1= $timage1;  
}
else{
 $filename1 = $_FILES["pro_img1"]["name"];
$tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

$image_name1=mt_rand().'_t'.$filename1;
$folder1 = 'upload_image/'.$image_name1;

move_uploaded_file($tempname1, $folder1);
} 


$update=mysqli_query($conn,"update tbl_slider set title='".$_POST['title']."',desk_img='".$image_name."',mob_img='".$image_name1."',title1='".$_POST['title1']."' where id='".$_POST['id']."'");
if($update){
    echo 1;
}
break;




case'delete_banner':
$delete=mysqli_query($conn,"delete from tbl_slider where id='".$_POST['id']."'"); 
if($delete){
    echo 1;
}
break;

case'editaboutfirstcontent':
$update=mysqli_query($conn,"update tbl_about_us_first_content  set title='".addslashes($_POST['firstcontent'])."',content='".addslashes($_POST['secondcontent'])."' where id='".$_POST['id']."'");
if($update){
    echo 1;
}  
//echo "update tbl_about_us_first_content  set title='".addslashes($_POST['firstcontent'])."',content='".addslashes($_POST['secondcontent'])."' where id='".$_POST['id']."'";
break; 

case'editaboutsecondcontent': 
$sel=mysqli_query($conn,"select image from tbl_about_us_second_content where id='".$_POST['id']."'");
$result=mysqli_fetch_object($sel);
$timage=$result->image; 
 
if($_FILES["pro_img"]["name"]==""){
 $image_name= $timage;  
}
else{
 $filename = $_FILES["pro_img"]["name"];
$tempname = $_FILES["pro_img"]["tmp_name"]; 

$image_name=mt_rand().'_t'.$filename;
$folder = 'upload_image/'.$image_name;

move_uploaded_file($tempname, $folder);
} 
$update=mysqli_query($conn,"update tbl_about_us_second_content  set title='".addslashes($_POST['firstcontent'])."',content='".addslashes($_POST['secondcontent'])."',image='".$image_name."' where id='".$_POST['id']."'");
if($update){
    echo 1;
}  
break;  
    
case'addaboutslider':
 $filename = $_FILES["pro_img"]["name"];
$tempname = $_FILES["pro_img"]["tmp_name"]; 

$image_name=mt_rand(100000,999999).'_t'.$filename;

$folder = 'upload_image/'.$image_name;

if(move_uploaded_file($tempname, $folder)){
    $insert=mysqli_query($conn,"insert into  tbl_about_slider (title,image) values ('".$_POST['title']."','".$image_name."')");
}
//echo "insert into  tbl_team (name,designation,image,description) values ('".$_POST['title']."','".$_POST['title2']."','".$image_name."','".$_POST['firstcontent']."')";
if($insert){
    echo 1;
}
break;

 

case'editaboutslider':
$sel=mysqli_query($conn,"select image from tbl_about_slider where id='".$_POST['id']."'");
$result=mysqli_fetch_object($sel);
$timage=$result->image; 
if($_FILES["pro_img"]["name"]==""){
 $image_name= $timage;  
}
else{
 $filename = $_FILES["pro_img"]["name"];
$tempname = $_FILES["pro_img"]["tmp_name"]; 

$image_name=mt_rand().'_t'.$filename;
$folder = 'upload_image/'.$image_name;

move_uploaded_file($tempname, $folder);
}   

$update=mysqli_query($conn,"update tbl_about_slider set title='".$_POST['title']."',image='".$image_name."' where id='".$_POST['id']."'");
if($update){
    echo 1;
}
break; 

case'delete_about_slider':
$delete=mysqli_query($conn,"delete from tbl_about_slider where id='".$_POST['id']."'"); 
if($delete){
    echo 1;
}
break; 

case'addproject':
 $filename = $_FILES["pro_img"]["name"];
$tempname = $_FILES["pro_img"]["tmp_name"]; 

$image_name=mt_rand(100000,999999).'_p'.$filename;

$folder = 'upload_image/'.$image_name;

move_uploaded_file($tempname, $folder);

 $filename1 = $_FILES["logo_img"]["name"];
$tempname1 = $_FILES["logo_img"]["tmp_name"]; 

$image_name1=mt_rand(100000,999999).'_p'.$filename1;

$folder1 = 'upload_image/'.$image_name;

move_uploaded_file($tempname1, $folder1); 


$insert=mysqli_query($conn,"insert into  tbl_projects (name,image,logo_image,status) values ('".$_POST['name']."','".$image_name."','".$image_name1."','".$_POST['status']."')");

//echo "insert into  tbl_projects (name,image,status) values ('".$_POST['name']."','".$image_name."','".$_POST['status']."')";
if($insert){
    echo 1;
}    
break; 
case'updateproject':
    
$sel=mysqli_query($conn,"select image,logo_image from tbl_projects where id='".$_POST['id']."'");
$result=mysqli_fetch_object($sel);
$timage=$result->image; 
$timage1=$result->logo_image;
if($_FILES["pro_img"]["name"]==""){
 $image_name= $timage;  
}
else{
 $filename = $_FILES["pro_img"]["name"];
$tempname = $_FILES["pro_img"]["tmp_name"]; 

$image_name=mt_rand().'_p'.$filename;
$folder = 'upload_image/'.$image_name;

move_uploaded_file($tempname, $folder);
} 


if($_FILES["logo_img"]["name"]==""){
 $image_name1= $timage1;  
}
else{
 $filename1 = $_FILES["logo_img"]["name"];
$tempname1 = $_FILES["logo_img"]["tmp_name"]; 

$image_name1=mt_rand().'_p'.$filename1;
$folder1 = 'upload_image/'.$image_name1;

move_uploaded_file($tempname1, $folder1);
}


 $update=mysqli_query($conn,"update tbl_projects set name='".$_POST['name']."',image='".$image_name."',logo_image='".$image_name1."' where id='".$_POST['id']."'")    ;
if($update){
    echo 1;
}   
break;  

case'delete_project':
$delete=mysqli_query($conn,"delete from tbl_projects where id='".$_POST['id']."'"); 
if($delete){
    echo 1;
}    
break;    

case'change_project_status':
$update=mysqli_query($conn,"update tbl_projects set status='".$_POST['stat']."' where id='".$_POST['id']."'")    ;
if($update){
    echo 1;
}

case'editprojectpageintro':
 $update=mysqli_query($conn,"update tbl_project_page_intro  set title='".addslashes($_POST['firstcontent'])."',content='".addslashes($_POST['secondcontent'])."' where id='".$_POST['id']."'")    ;
if($update){
    echo 1;
}   
break;  

case'addprojectdetailsintro':
  $filename = $_FILES["pro_img"]["name"];
$tempname = $_FILES["pro_img"]["tmp_name"]; 

$image_name=mt_rand().'_t'.$filename;
$folder = 'upload_image/'.$image_name;

move_uploaded_file($tempname, $folder);

$insert=mysqli_query($conn,"insert into  tbl_project_details_intro_content (pro_id,title,content,image) values ('".$_POST['project']."','".addslashes($_POST['firstcontent'])."','".addslashes($_POST['secondcontent'])."','".$image_name."')");
if($insert){
    echo 1;
} 

break;    

case'editprojectdetailsintro':
$sel=mysqli_query($conn,"select image from tbl_project_details_intro_content  where id='".$_POST['id']."'");
$result=mysqli_fetch_object($sel);
$timage=$result->image; 
if($_FILES["pro_img"]["name"]==""){
 $image_name= $timage;  
}
else{
 $filename = $_FILES["pro_img"]["name"];
$tempname = $_FILES["pro_img"]["tmp_name"]; 

$image_name=mt_rand().'_t'.$filename;
$folder = 'upload_image/'.$image_name;

move_uploaded_file($tempname, $folder);
}     
 $update=mysqli_query($conn,"update tbl_project_details_intro_content set pro_id='".$_POST['project']."',title='".addslashes($_POST['firstcontent'])."',content='".addslashes($_POST['secondcontent'])."',image='".$image_name."' where id='".$_POST['id']."'")    ;
if($update){
    echo 1;
}     
break; 

case'delete_project_details_intro':
$delete=mysqli_query($conn,"delete from tbl_project_details_intro_content where id='".$_POST['id']."'"); 
if($delete){
    echo 1;
}     
break; 

case'addamenities':
  $filename = $_FILES["pro_img"]["name"];
$tempname = $_FILES["pro_img"]["tmp_name"]; 

$image_name=mt_rand().'_t'.$filename;
$folder = 'upload_image/'.$image_name;

move_uploaded_file($tempname, $folder);

$insert=mysqli_query($conn,"insert into tbl_amenities  (pro_id,name,image) values ('".$_POST['project']."','".addslashes($_POST['firstcontent'])."','".$image_name."')");
if($insert){
    echo 1;
}     
break; 

case'delete_amenities':
$delete=mysqli_query($conn,"delete from tbl_amenities where id='".$_POST['id']."'"); 
if($delete){
    echo 1;
}    
break;    

case'addgallery':
      $filename = $_FILES["pro_img"]["name"];
$tempname = $_FILES["pro_img"]["tmp_name"]; 

$image_name=mt_rand().'_t'.$filename;
$folder = 'upload_image/'.$image_name;

move_uploaded_file($tempname, $folder);
 $insert=mysqli_query($conn,"insert into  tbl_gallery   (pro_id,name,image) values ('".$_POST['project']."','".$_POST['name']."','".$image_name."')");
if($insert){
    echo 1;
}    
break;    

case'delete_gallery':
    $sel=mysqli_query($conn,"select image from tbl_gallery  where id='".$_POST['id']."'");
$result=mysqli_fetch_object($sel);
$timage=$result->image;
$delete=mysqli_query($conn,"delete from tbl_gallery where id='".$_POST['id']."'"); 
if($delete){
    unlink('upload_image/'.$timage);
    echo 1;
}    
break; 

case'addwalkthrough':
 $insert=mysqli_query($conn,"insert into tbl_project_walkthrough (pro_id,url) values ('".$_POST['project']."','".$_POST['url']."')");
if($insert){
    echo 1;
}     
break;   

case'delete_walkthrough':
$delete=mysqli_query($conn,"delete from tbl_project_walkthrough where id='".$_POST['id']."'"); 
if($delete){
   
    echo 1;
}      
break;

case'addconstructionimage':
$filename = $_FILES["pro_img"]["name"];
$tempname = $_FILES["pro_img"]["tmp_name"]; 

$image_name=mt_rand().'_t'.$filename;
$folder = 'upload_image/'.$image_name;

move_uploaded_file($tempname, $folder);
 $insert=mysqli_query($conn,"insert into tbl_construction_image (pro_id,name,image) values ('".$_POST['project']."','".$_POST['name']."','".$image_name."')");
if($insert){
    echo 1;
}      
break;  

case'delete_construction_image':
   $sel=mysqli_query($conn,"select image from tbl_construction_image  where id='".$_POST['id']."'");
$result=mysqli_fetch_object($sel);
$timage=$result->image;
$delete=mysqli_query($conn,"delete from tbl_construction_image where id='".$_POST['id']."'"); 
if($delete){
    unlink('upload_image/'.$timage);
    echo 1;
}        
break;

case'addfloorplan':
$filename = $_FILES["pro_img"]["name"];
$tempname = $_FILES["pro_img"]["tmp_name"]; 

$image_name=mt_rand().'_t'.$filename;
$folder = 'upload_image/'.$image_name;

move_uploaded_file($tempname, $folder);
 $insert=mysqli_query($conn,"insert into tbl_floor_plan (pro_id,name,image) values ('".$_POST['project']."','".$_POST['name']."','".$image_name."')");
if($insert){
    echo 1;
}     
break;  

case'delete_floor_plan_image':
   $sel=mysqli_query($conn,"select image from tbl_floor_plan  where id='".$_POST['id']."'");
$result=mysqli_fetch_object($sel);
$timage=$result->image;
$delete=mysqli_query($conn,"delete from tbl_floor_plan where id='".$_POST['id']."'"); 
if($delete){
    unlink('upload_image/'.$timage);
    echo 1;
}    
break; 

case'addmasterplan':
$filename = $_FILES["pro_img"]["name"];
$tempname = $_FILES["pro_img"]["tmp_name"]; 

$image_name=mt_rand().'_t'.$filename;
$folder = 'upload_image/'.$image_name;

move_uploaded_file($tempname, $folder);
 $insert=mysqli_query($conn,"insert into  tbl_master_plan  (pro_id,name,image) values ('".$_POST['project']."','".$_POST['name']."','".$image_name."')");
if($insert){
    echo 1;
}     
break;  

case'delete_master_plan_image':
   $sel=mysqli_query($conn,"select image from  tbl_master_plan   where id='".$_POST['id']."'");
$result=mysqli_fetch_object($sel);
$timage=$result->image;
$delete=mysqli_query($conn,"delete from  tbl_master_plan where id='".$_POST['id']."'"); 
if($delete){
    unlink('upload_image/'.$timage);
    echo 1;
}    
break; 

case'addprojectinfodata':
$filename = $_FILES["pro_img"]["name"];
$tempname = $_FILES["pro_img"]["tmp_name"]; 

$image_name=mt_rand().'_t'.$filename;
$folder = 'upload_image/'.$image_name;

move_uploaded_file($tempname, $folder);
 $insert=mysqli_query($conn,"insert into tbl_project_contact_details  (pro_id,intro_text,address1,address2,delivered_text,rera_no,image) values ('".$_POST['project']."','".addslashes($_POST['secondcontent'])."','".$_POST['name1']."','".$_POST['name2']."','".$_POST['name3']."','".$_POST['name4']."','".$image_name."')");
if($insert){
    echo 1;
}    
break;  

case'editprojectinfodata':
$sel=mysqli_query($conn,"select image from tbl_project_contact_details  where id='".$_POST['id']."'");
$result=mysqli_fetch_object($sel);
$timage=$result->image; 
if($_FILES["pro_img"]["name"]==""){
 $image_name= $timage;  
}
else{
 $filename = $_FILES["pro_img"]["name"];
$tempname = $_FILES["pro_img"]["tmp_name"]; 

$image_name=mt_rand().'_t'.$filename;
$folder = 'upload_image/'.$image_name;

move_uploaded_file($tempname, $folder);
}     
 $update=mysqli_query($conn,"update tbl_project_contact_details set pro_id='".$_POST['project']."',title='".addslashes($_POST['firstcontent'])."',intro_text='".addslashes($_POST['secondcontent'])."',address1='".$_POST['name1']."',address2='".$_POST['name2']."',delivered_text='".$_POST['name3']."',rera_no='".$_POST['name4']."',image='".$image_name."' where id='".$_POST['id']."'")    ;
if($update){
    echo 1;
}     
break; 

case'delete_project_info':
$sel=mysqli_query($conn,"select image from  tbl_project_contact_details   where id='".$_POST['id']."'");
$result=mysqli_fetch_object($sel);
$timage=$result->image;
$delete=mysqli_query($conn,"delete from  tbl_project_contact_details where id='".$_POST['id']."'"); 
if($delete){
    unlink('upload_image/'.$timage);
    echo 1;
}     
break;

case'addprojectspecification':
 $insert=mysqli_query($conn,"insert into tbl_project_specification (pro_id,title,description) values ('".$_POST['project']."','".$_POST['title']."','".addslashes($_POST['secondcontent'])."')");
if($insert){
    echo 1;
}    
break;  

case'editprojectspecification':
 $update=mysqli_query($conn,"update tbl_project_specification set pro_id='".$_POST['project']."',title='".$_POST['title']."',description='".addslashes($_POST['secondcontent'])."' where id='".$_POST['id']."'")    ;
if($update){
    echo 1;
}      
break; 

case'delete_specification':
$delete=mysqli_query($conn,"delete from  tbl_project_specification where id='".$_POST['id']."'");
//echo "delete from  tbl_project_specification where id='".$_POST['id']."'"
if($delete){
echo 1;
}     
break;

case'addcontactaddress':
 $update=mysqli_query($conn,"update tbl_contact_address  set ph_no='".$_POST['ph_no']."',address='".$_POST['address']."',email_id='".$_POST['email']."' where id='".$_POST['id']."'")    ;
if($update){
    echo 1;
}     
break;   


case'editmediafirstcontent':
$update=mysqli_query($conn,"update tbl_media_first_content  set title='".addslashes($_POST['firstcontent'])."',content='".addslashes($_POST['secondcontent'])."' where id='".$_POST['id']."'");
if($update){
    echo 1;
}  
//echo "update tbl_about_us_first_content  set title='".addslashes($_POST['firstcontent'])."',content='".addslashes($_POST['secondcontent'])."' where id='".$_POST['id']."'";
break; 


case'addmediaslider':
 $filename = $_FILES["pro_img"]["name"];
$tempname = $_FILES["pro_img"]["tmp_name"]; 

$image_name=mt_rand(100000,999999).'_t'.$filename;

$folder = 'upload_image/'.$image_name;

if(move_uploaded_file($tempname, $folder)){
    $insert=mysqli_query($conn,"insert into  tbl_media_slider (title,image) values ('".$_POST['title']."','".$image_name."')");
}
//echo "insert into  tbl_team (name,designation,image,description) values ('".$_POST['title']."','".$_POST['title2']."','".$image_name."','".$_POST['firstcontent']."')";
if($insert){
    echo 1;
}    
break;  

case'editmediaslider':
$sel=mysqli_query($conn,"select image from tbl_media_slider where id='".$_POST['id']."'");
$result=mysqli_fetch_object($sel);
$timage=$result->image; 
if($_FILES["pro_img"]["name"]==""){
 $image_name= $timage;  
}
else{
 $filename = $_FILES["pro_img"]["name"];
$tempname = $_FILES["pro_img"]["tmp_name"]; 

$image_name=mt_rand().'_t'.$filename;
$folder = 'upload_image/'.$image_name;

move_uploaded_file($tempname, $folder);
}   

$update=mysqli_query($conn,"update tbl_media_slider set title='".$_POST['title']."',image='".$image_name."' where id='".$_POST['id']."'");
if($update){
    echo 1;
}    
break; 

case'delete_media_slider':
$delete=mysqli_query($conn,"delete from tbl_media_slider where id='".$_POST['id']."'"); 
if($delete){
    echo 1;
}    
break; 

case'editmediasecondcontent':
$update=mysqli_query($conn,"update tbl_media_second_content  set title='".addslashes($_POST['firstcontent'])."',content='".addslashes($_POST['secondcontent'])."' where id='".$_POST['id']."'");
if($update){
    echo 1;
}     
break;    

case'addmediaitem':
 $filename = $_FILES["pro_img"]["name"];
$tempname = $_FILES["pro_img"]["tmp_name"]; 

$image_name=mt_rand(100000,999999).'_t'.$filename;

$folder = 'upload_image/'.$image_name;

if(move_uploaded_file($tempname, $folder)){
    $insert=mysqli_query($conn,"insert into tbl_media_item (title,content,date,image) values ('".$_POST['title']."','".addslashes($_POST['secondcontent'])."','".$_POST['date']."','".$image_name."')");
}
//echo "insert into tbl_media_item (title,content,date,image) values ('".$_POST['title']."','".addslashes($_POST['secondcontent'])."','".$_POST['date']."','".$image_name."')";
if($insert){
    echo 1;
}     
break; 

case'editmediaitem':
$sel=mysqli_query($conn,"select image from tbl_media_item where id='".$_POST['id']."'");
$result=mysqli_fetch_object($sel);
$timage=$result->image; 
if($_FILES["pro_img"]["name"]==""){
 $image_name= $timage;  
}
else{
 $filename = $_FILES["pro_img"]["name"];
$tempname = $_FILES["pro_img"]["tmp_name"]; 

$image_name=mt_rand().'_t'.$filename;
$folder = 'upload_image/'.$image_name;

move_uploaded_file($tempname, $folder);
} 

$update=mysqli_query($conn,"update tbl_media_item set title='".$_POST['title']."',content='".addslashes($_POST['secondcontent'])."',date='".$_POST['date']."',image='".$image_name."' where id='".$_POST['id']."'");
if($update){
    echo 1;
}
break;  

case'delete_media_item':
    $sel=mysqli_query($conn,"select image from tbl_media_item  where id='".$_POST['id']."'");
$result=mysqli_fetch_object($sel);
$timage=$result->image;
$delete=mysqli_query($conn,"delete from tbl_media_item where id='".$_POST['id']."'"); 
if($delete){
    unlink('upload_image/'.$timage);
    echo 1;
}        
break;    

case'delete_work_with_us':
$delete=mysqli_query($conn,"delete from tbl_work_with_us where id='".$_POST['id']."'"); 
if($delete){
    echo 1;
}    
break;  
// case'updatecontact_content':
// $sel=mysqli_query($conn,"select image,mob_image from tbl_contact where id='".$_POST['id']."'");
// $result=mysqli_fetch_object($sel);
// $timage=$result->image;
// $timage1=$result->mob_image;
// if($_FILES["pro_img"]["name"]==""){
//  $image_name= $timage;  
// }
// else{
//  $filename = $_FILES["pro_img"]["name"];
// $tempname = $_FILES["pro_img"]["tmp_name"]; 

// $image_name=mt_rand().'_c'.$filename;
// $folder = 'project_image/'.$image_name;

// move_uploaded_file($tempname, $folder);
// }  


// if($_FILES["pro_img1"]["name"]==""){
//  $image_name1= $timage1;  
// }
// else{
//  $filename1 = $_FILES["pro_img1"]["name"];
// $tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name1=mt_rand().'_c'.$filename1;
// $folder1 = 'project_image/'.$image_name1;

// move_uploaded_file($tempname1, $folder1);
// }

// $update=mysqli_query($conn,"update tbl_contact set image='".$image_name."',mob_image='".$image_name1."',addr1='".$_POST['firstcontent']."',addr2='".$_POST['secondcontent']."',cmailid='".$_POST['cmailid']."',career_content='".$_POST['thirdcontent']."',crmailid='".$_POST['crmailid']."' where id='".$_POST['id']."'");
// if($update){
//     echo 1;
// }
// break; 

// case'adddesigncontent':
//  $sel=mysqli_query($conn,"select banner_img,mob_banner_img from tbl_design where id='".$_POST['id']."'");
// $result=mysqli_fetch_object($sel);
// $timage=$result->banner_img; 
// $timage2=$result->mob_banner_img;
// if($_FILES["pro_img"]["name"]==""){
//  $image_name= $timage;  
// }
// else{
//  $filename = $_FILES["pro_img"]["name"];
// $tempname = $_FILES["pro_img"]["tmp_name"]; 

// $image_name=mt_rand().'_c'.$filename;
// $folder = 'project_image/'.$image_name;

// move_uploaded_file($tempname, $folder);
// }

//  $sel1=mysqli_query($conn,"select inno_img from tbl_design where id='".$_POST['id']."'");
// $result1=mysqli_fetch_object($sel1);
// $timage1=$result1->inno_img; 
// if($_FILES["pro_img1"]["name"]==""){
//  $image_name1= $timage1;  
// }
// else{
//  $filename1 = $_FILES["pro_img1"]["name"];
// $tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name1=mt_rand().'_c'.$filename1;
// $folder1 = 'project_image/'.$image_name1;

// move_uploaded_file($tempname1, $folder1);
// } 

// if($_FILES["pro_img2"]["name"]==""){
//  $image_name2= $timage2;  
// }
// else{
//  $filename2 = $_FILES["pro_img2"]["name"];
// $tempname2 = $_FILES["pro_img2"]["tmp_name"]; 

// $image_name2=mt_rand().'_c'.$filename2;
// $folder2 = 'project_image/'.$image_name2;

// move_uploaded_file($tempname2, $folder2);
// }

// $update=mysqli_query($conn,"update  tbl_design set banner_img='".$image_name."',mob_banner_img='".$image_name2."',title='".$_POST['title']."',sub_title='".$_POST['subtitle']."',inno_img='".$image_name1."' where id='".$_POST['id']."'");
// if($update){
//     echo 1;
// }
// break;

// case'addtopic':
// //  $filename = $_FILES["pro_img"]["name"];
// // $tempname = $_FILES["pro_img"]["tmp_name"]; 

// // $image_name=mt_rand().'_T'.$filename;
// // $folder = 'project_image/'.$image_name;

// // move_uploaded_file($tempname, $folder); 

// $insert=mysqli_query($conn,"insert into  tbl_topic(topic,topic_title,description) values ('".$_POST['topic']."','".$_POST['title']."','".addslashes($_POST['firstcontent'])."')");
// $top_id=mysqli_insert_id($conn);
// $uploadFolder = 'project_image/';


//  foreach ($_FILES['pro_img']['tmp_name'] as $key => $image) {
//      if($_FILES['pro_img']['name'][$key]!=''){
//         $imageTmpName = $_FILES['pro_img']['tmp_name'][$key];
//         $imageName = mt_rand(100000,999999).'_'.$_FILES['pro_img']['name'][$key];
//         $result = move_uploaded_file($imageTmpName,$uploadFolder.$imageName);

//         // save to database
        
//         mysqli_query($conn,"insert into tbl_topic_images (topic_id,images) values('".$top_id."','".$imageName."')");
//      }
//     }


// if($insert){
//     echo 1;
// }
// break; 

// case'edittopic':
// // $sel=mysqli_query($conn,"select image from tbl_topic where topic_id='".$_POST['id']."'");
// // $result=mysqli_fetch_object($sel);
// // $timage=$result->image; 
// // if($_FILES["pro_img"]["name"]==""){
// //  $image_name= $timage;  
// // }
// // else{
// //  $filename = $_FILES["pro_img"]["name"];
// // $tempname = $_FILES["pro_img"]["tmp_name"]; 

// // $image_name=mt_rand().'_T'.$filename;
// // $folder = 'project_image/'.$image_name;

// // move_uploaded_file($tempname, $folder);
// // }
// $uploadFolder = 'project_image/';
// $update=mysqli_query($conn,"update tbl_topic set topic='".$_POST['topic']."',topic_title='".$_POST['title']."',description='".addslashes($_POST['firstcontent'])."' where topic_id='".$_POST['id']."'");
//  $count=count(array_filter($_FILES['pro_img']['name'])); 
//   if($count>0){
//       mysqli_query($conn,"delete from tbl_topic_images where topic_id='".$_POST['id']."'");
//     foreach ($_FILES['pro_img']['tmp_name'] as $key1 => $image1) {
//      if($_FILES['pro_img']['name'][$key1]!=''){
//         $imageTmpName1 = $_FILES['pro_img']['tmp_name'][$key1];
//         $imageName1 = mt_rand(100000,999999).time().'_'.$_FILES['pro_img']['name'][$key1];
//         $result1 = move_uploaded_file($imageTmpName1,$uploadFolder.$imageName1);

//         // save to database
        
//         //mysqli_query($conn,"insert into tbl_pro_images(pro_id,img) values('".$_POST['pro_edit_id']."','".$imageName1."')");
//         mysqli_query($conn,"insert into tbl_topic_images (topic_id,images) values('".$_POST['id']."','".$imageName1."')");
//      }
//     } 
//   } 

// if($update){
//     echo 1;
// }
// break;

// case'delete_topic':
// $delete1=mysqli_query($conn,"delete from tbl_topic_images where topic_id='".$_POST['top_id']."'") ;
// $delete=mysqli_query($conn,"delete from tbl_topic where topic_id='".$_POST['top_id']."'") ;

// if($delete){
//     echo 1;
// }
// break;  

// case'addvideo':
//  $filename = $_FILES["pro_img"]["name"];
// $tempname = $_FILES["pro_img"]["tmp_name"]; 

// $image_name=mt_rand(100000,999999).'_V'.$filename;

// $folder = 'project_image/'.$image_name;

// move_uploaded_file($tempname, $folder);

// $insert=mysqli_query($conn,"insert into tbl_video(title,video_url,video_date,image) values('".$_POST['title']."','".$_POST['url']."','".$_POST['vdate']."','".$image_name."')");

// if($insert){
//     echo 1;
// }
// break;  

// case'editvideo':
//  $sel1=mysqli_query($conn,"select image from  tbl_video  where video_id='".$_POST['id']."'");
// $result1=mysqli_fetch_object($sel1);
// $timage1=$result1->image; 
// if($_FILES["pro_img"]["name"]==""){
//  $image_name1= $timage1;  
// }
// else{
//  $filename1 = $_FILES["pro_img"]["name"];
// $tempname1 = $_FILES["pro_img"]["tmp_name"]; 

// $image_name1=mt_rand().'_c'.$filename1;
// $folder1 = 'project_image/'.$image_name1;

// move_uploaded_file($tempname1, $folder1);
// } 

// $update=mysqli_query($conn,"update tbl_video set title='".$_POST['title']."',video_url='".$_POST['url']."',image='".$image_name1."',video_date='".$_POST['vdate']."' where video_id='".$_POST['id']."'");
// //echo "update tbl_video set title='".$_POST['title']."',video_url='".$_POST['url']."',image='".$image_name1."',video_date='".$_POST['vdate']."' where video_id='".$_POST['id']."'";
// if($update){
//     echo 1;
// }
// break;

// case'delete_video':
// $delete=mysqli_query($conn,"delete from tbl_video where video_id='".$_POST['video_id']."'")    ;
// if($delete){
//     echo 1;
// }
// break; 

// case'updatenetpositivecontent':
// //   $sel1=mysqli_query($conn,"select banner_image from  tbl_netpositive_content  where id='".$_POST['id']."'");
// // $result1=mysqli_fetch_object($sel1);
// // $timage1=$result1->banner_image; 
// // if($_FILES["pro_img"]["name"]==""){
// //  $image_name1= $timage1;  
// // }
// // else{
// //  $filename1 = $_FILES["pro_img"]["name"];
// // $tempname1 = $_FILES["pro_img"]["tmp_name"]; 

// // $image_name1=mt_rand().'_N'.$filename1;
// // $folder1 = 'project_image/'.$image_name1;

// // move_uploaded_file($tempname1, $folder1);
// // } 

// $update=mysqli_query($conn,"update tbl_netpositive_content set heading='".$_POST['firstcontent']."',sub_heading='".$_POST['secondcontent']."' where id='".$_POST['id']."'");
// //echo "update tbl_video set title='".$_POST['title']."',video_url='".$_POST['url']."',image='".$image_name1."',video_date='".$_POST['vdate']."' where video_id='".$_POST['id']."'";
// if($update){
//     echo 1;
// }   
// break;

// case'addnetpositiveitem':
// // $filename = $_FILES["pro_img"]["name"];
// // $tempname = $_FILES["pro_img"]["tmp_name"]; 

// // $image_name=mt_rand(100000,999999).'_I'.$filename;

// // $folder = 'project_image/'.$image_name;

// // move_uploaded_file($tempname, $folder);


// $filename1 = $_FILES["pro_img1"]["name"];
// $tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name1=mt_rand(100000,999999).'_B'.$filename1;

// $folder1 = 'project_image/'.$image_name1;

// move_uploaded_file($tempname1, $folder1);

// // $filename2 = $_FILES["pro_img2"]["name"];
// // $tempname2 = $_FILES["pro_img2"]["tmp_name"]; 

// // $image_name2=mt_rand(100000,999999).'_P'.$filename2;

// // $folder2 = 'pdf/'.$image_name2;

// // move_uploaded_file($tempname2, $folder2);


// // $filename3 = $_FILES["pro_img3"]["name"];
// // $tempname3 = $_FILES["pro_img3"]["tmp_name"]; 

// // $image_name3=mt_rand(100000,999999).'_P'.$filename3;

// // $folder3 = 'project_image/'.$image_name3;

// // move_uploaded_file($tempname3, $folder3);

// // $insert=mysqli_query($conn,"insert into  tbl_netpositive (title,content,icon_image,home_image,big_image,pdf) values ('".$_POST['title']."','".$_POST['firstcontent']."','".$image_name."','".$image_name3."','".$image_name1."','".$image_name2."')");
// $insert=mysqli_query($conn,"insert into  tbl_netpositive (title,content,big_image) values ('".$_POST['title']."','".addslashes($_POST['firstcontent'])."','".$image_name1."')");
// if($insert){
//     echo 1;
// }
// //echo "insert into  tbl_netpositive (title,content,big_image) values ('".$_POST['title']."','".addslashes($_POST['firstcontent'])."','".$image_name1."')";
// break;   

// case'editnetpositiveitem':
// //  $sel1=mysqli_query($conn,"select icon_image,home_image,big_image,pdf from  tbl_netpositive  where net_id='".$_POST['id']."'");
// // $result1=mysqli_fetch_object($sel1);
// // $timage1=$result1->icon_image; 
// // if($_FILES["pro_img"]["name"]==""){
// //  $image_name1= $timage1;  
// // }
// // else{
// //  $filename1 = $_FILES["pro_img"]["name"];
// // $tempname1 = $_FILES["pro_img"]["tmp_name"]; 

// // $image_name1=mt_rand().'_N'.$filename1;
// // $folder1 = 'project_image/'.$image_name1;

// // move_uploaded_file($tempname1, $folder1);
// // }
//  $sel1=mysqli_query($conn,"select big_image from  tbl_netpositive  where net_id='".$_POST['id']."'");
// $result1=mysqli_fetch_object($sel1);
// $timage2=$result1->big_image; 
// if($_FILES["pro_img1"]["name"]==""){
//  $image_name2= $timage2;  
// }
// else{
//  $filename2 = $_FILES["pro_img1"]["name"];
// $tempname2 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name2=mt_rand().'_N'.$filename2;
// $folder2 = 'project_image/'.$image_name2;

// move_uploaded_file($tempname2, $folder2);
// }


// // $timage3=$result1->pdf; 
// // if($_FILES["pro_img2"]["name"]==""){
// //  $image_name3= $timage3;  
// // }
// // else{
// //  $filename3 = $_FILES["pro_img2"]["name"];
// // $tempname3 = $_FILES["pro_img2"]["tmp_name"]; 

// // $image_name3=mt_rand().'_P'.$filename3;
// // $folder3 = 'pdf/'.$image_name3;

// // move_uploaded_file($tempname3, $folder3);

// // }



// // $timage4=$result1->home_image; 
// // if($_FILES["pro_img3"]["name"]==""){
// //  $image_name4= $timage4;  
// // }
// // else{
// //  $filename4 = $_FILES["pro_img3"]["name"];
// // $tempname4 = $_FILES["pro_img3"]["tmp_name"]; 

// // $image_name4=mt_rand().'_P'.$filename4;
// // $folder4 = 'project_image/'.$image_name4;

// // move_uploaded_file($tempname4, $folder4);

// // }


// $update=mysqli_query($conn,"update tbl_netpositive set title='".$_POST['title']."',big_image='".$image_name2."',content='".addslashes($_POST['firstcontent'])."' where net_id='".$_POST['id']."'");

// if($update) {
//   echo 1;  
// }
// break;

// case'delete_netpositive':
//  $delete=mysqli_query($conn,"delete from tbl_netpositive where net_id='".$_POST['net_id']."'") ;
//  if($delete){
//      echo 1;
//  }
// break;

// case'addvbanner':
// $filename = $_FILES["pro_img"]["name"];
// $tempname = $_FILES["pro_img"]["tmp_name"]; 

// $image_name=mt_rand(100000,999999).'_VD'.$filename;

// $folder = 'video/'.$image_name;

// move_uploaded_file($tempname, $folder);


// $filename1 = $_FILES["pro_img1"]["name"];
// $tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name1=mt_rand(100000,999999).'_VM'.$filename1;

// $folder1 = 'video/'.$image_name1;

// move_uploaded_file($tempname1, $folder1);  

// $insert=mysqli_query($conn,"insert into tbl_home_banner (title,sub_title,desk_video,mob_video) values('".$_POST['title']."','".$_POST['title2']."','".$image_name."','".$image_name1."')");
// if($insert){
//     echo 1;
// }
// break; 

// case'editvbanner':
//  $sel1=mysqli_query($conn,"select desk_video,mob_video from  tbl_home_banner   where id='".$_POST['id']."'");
// $result1=mysqli_fetch_object($sel1);
// $timage1=$result1->desk_video; 
// if($_FILES["pro_img"]["name"]==""){
//  $image_name1= $timage1;  
// }
// else{
//  $filename1 = $_FILES["pro_img"]["name"];
// $tempname1 = $_FILES["pro_img"]["tmp_name"]; 

// $image_name1=mt_rand().'_V'.$filename1;
// $folder1 = 'video/'.$image_name1;

// move_uploaded_file($tempname1, $folder1);
// }

// $timage2=$result1->mob_video; 
// if($_FILES["pro_img1"]["name"]==""){
//  $image_name2= $timage2;  
// }
// else{
//  $filename2 = $_FILES["pro_img1"]["name"];
// $tempname2 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name2=mt_rand().'_V'.$filename2;
// $folder2 = 'video/'.$image_name2;

// move_uploaded_file($tempname2, $folder2);
// } 

// $update=mysqli_query($conn,"update tbl_home_banner set title='".$_POST['title']."',sub_title='".$_POST['title2']."',desk_video='".$image_name1."',mob_video='".$image_name2."' where id='".$_POST['id']."'");
// if($update){
//     echo 1;
// }
// break; 

// case'delete_videobanner':
// $delete=mysqli_query($conn,"delete from tbl_home_banner where id='".$_POST['video_id']."'"); 
// if($delete){
//     echo 1;
// }
// break; 

// case'addnewsitem':
// $filename1 = $_FILES["pro_img1"]["name"];
// $tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name1=mt_rand(100000,999999).'_N'.$filename1;

// $folder1 = 'news_image/'.$image_name1;

// if(move_uploaded_file($tempname1, $folder1)){
// $insert=mysqli_query($conn,"insert into tbl_news(news_date,title,description,image,status) values ('".$_POST['ndate']."','".$_POST['title']."','".addslashes($_POST['firstcontent'])."','".$image_name1."',1)");

// if($insert){
//  echo 1;   
// }
// //echo "insert into tbl_news(news_date,title,description,image,status) values ('".$_POST['ndate']."','".$_POST['title']."','".addslashes($_POST['firstcontent'])."','".$image_name1."',1)";
// }


// break;    
 
// case'updatenewsitem':
//  $sel1=mysqli_query($conn,"select image from  tbl_news  where id='".$_POST['id']."'");
// $result1=mysqli_fetch_object($sel1);
// $timage1=$result1->image; 
// if($_FILES["pro_img1"]["name"]==""){
//  $image_name1= $timage1;  
// }
// else{
//  $filename1 = $_FILES["pro_img1"]["name"];
// $tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name1=mt_rand().'_N'.$filename1;
// $folder1 = 'news_image/'.$image_name1;

// move_uploaded_file($tempname1, $folder1);
// } 

// $update=mysqli_query($conn,"update tbl_news set news_date='".$_POST['ndate']."',title='".$_POST['title']."',description='".addslashes($_POST['firstcontent'])."',image='".$image_name1."' where id='".$_POST['id']."'");

// if($update){
//     echo 1;
// }
// break; 

// // case'change_news_status':
// // $update=mysqli_query($conn,"update tbl_news set status='".$_POST['stat']."' where id='".$_POST['id']."'")    ;
// // if($update){
// //     echo 1;
// // }

    
// break;

// case'delete_news':
// $delete=mysqli_query($conn,"delete from tbl_news where id='".$_POST['id']."'"); 
// if($delete){
//     echo 1;
// }    
// break;

// case'updatedialougebanner':
//  $sel1=mysqli_query($conn,"select desktop_banner,mob_banner from tbl_dialouge_banner where id=1");
// $result1=mysqli_fetch_object($sel1);
// $timage1=$result1->desktop_banner;
// $timage2=$result1->mob_banner;
// if($_FILES["pro_img1"]["name"]==""){
//  $image_name1= $timage1;  
// }
// else{
//  $filename1 = $_FILES["pro_img1"]["name"];
// $tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name1=mt_rand().'_D'.$filename1;
// $folder1 = 'dialouge/'.$image_name1;

// move_uploaded_file($tempname1, $folder1);
// } 

// if($_FILES["pro_img2"]["name"]==""){
//  $image_name2= $timage2;  
// }
// else{
//  $filename2 = $_FILES["pro_img2"]["name"];
// $tempname2 = $_FILES["pro_img2"]["tmp_name"]; 

// $image_name2=mt_rand().'_M'.$filename2;
// $folder2 = 'dialouge/'.$image_name2;

// move_uploaded_file($tempname2, $folder2);
// }

// $update=mysqli_query($conn,"update tbl_dialouge_banner set banner_title='".$_POST['title']."',desktop_banner='".$image_name1."',mob_banner='".$image_name2."' where id=1");

// if($update){
//     echo 1;
// }
// //echo "update tbl_dialouge_banner set title='".$_POST['title']."',desktop_banner='".$image_name1."',mob_banner='".$image_name2."' where id=1";
// break; 


// case'updatedialougebannerindia':
//  $sel1=mysqli_query($conn,"select desktop_banner,mob_banner from  tbl_dialouge_india_banner  where id=1");
// $result1=mysqli_fetch_object($sel1);
// $timage1=$result1->desktop_banner;
// $timage2=$result1->mob_banner;
// if($_FILES["pro_img1"]["name"]==""){
//  $image_name1= $timage1;  
// }
// else{
//  $filename1 = $_FILES["pro_img1"]["name"];
// $tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name1=mt_rand().'_D'.$filename1;
// $folder1 = 'dialouge/'.$image_name1;

// move_uploaded_file($tempname1, $folder1);
// } 

// if($_FILES["pro_img2"]["name"]==""){
//  $image_name2= $timage2;  
// }
// else{
//  $filename2 = $_FILES["pro_img2"]["name"];
// $tempname2 = $_FILES["pro_img2"]["tmp_name"]; 

// $image_name2=mt_rand().'_M'.$filename2;
// $folder2 = 'dialouge/'.$image_name2;

// move_uploaded_file($tempname2, $folder2);
// }

// $update=mysqli_query($conn,"update tbl_dialouge_india_banner  set banner_title='".$_POST['title']."',desktop_banner='".$image_name1."',mob_banner='".$image_name2."' where id=1");

// if($update){
//     echo 1;
// }
// //echo "update tbl_dialouge_banner set title='".$_POST['title']."',desktop_banner='".$image_name1."',mob_banner='".$image_name2."' where id=1";
// break; 

// case'updatedialoguecontent':
//  $update=mysqli_query($conn,"update tbl_dialouge_banner set content='".addslashes($_POST['firstcontent'])."' where id='".$_POST['id']."'")  ; 
//  if($update){
//     echo 1;
// }
// break;

// case'updatedialoguecontentindia':
//  $update=mysqli_query($conn,"update tbl_dialouge_india_banner set content='".addslashes($_POST['firstcontent'])."' where id='".$_POST['id']."'")  ; 
//  if($update){
//     echo 1;
// }
// break; 

// case'adddialogueitem':
// $filename1 = $_FILES["pro_img1"]["name"];
// $tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name1=mt_rand(100000,999999).'_D'.$filename1;

// $folder1 = 'dialouge/'.$image_name1;

// if(move_uploaded_file($tempname1, $folder1)){
// $insert=mysqli_query($conn,"insert into tbl_dialogue_item (title,content,image) values ('".$_POST['title']."','".addslashes($_POST['firstcontent'])."','".$image_name1."')");

// if($insert){
//  echo 1;   
// }
// //echo "insert into tbl_dialogue_item (title,content,image) values ('".$_POST['title']."','".addslashes($_POST['firstcontent'])."','".$image_name1."')";
// }
    
// break;

// case'adddialogueitemindia':
// $filename1 = $_FILES["pro_img1"]["name"];
// $tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name1=mt_rand(100000,999999).'_D'.$filename1;

// $folder1 = 'dialouge/'.$image_name1;

// if(move_uploaded_file($tempname1, $folder1)){
// $insert=mysqli_query($conn,"insert into tbl_dialogue_item_india  (title,content,image) values ('".$_POST['title']."','".addslashes($_POST['firstcontent'])."','".$image_name1."')");

// if($insert){
//  echo 1;   
// }
// //echo "insert into tbl_dialogue_item (title,content,image) values ('".$_POST['title']."','".addslashes($_POST['firstcontent'])."','".$image_name1."')";
// }
    
// break; 

// case'updatedialogueitem':
//   $sel1=mysqli_query($conn,"select image from  tbl_dialogue_item  where id='".$_POST['id']."'");
// $result1=mysqli_fetch_object($sel1);
// $timage1=$result1->image; 
// if($_FILES["pro_img1"]["name"]==""){
//  $image_name1= $timage1;  
// }
// else{
//  $filename1 = $_FILES["pro_img1"]["name"];
// $tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name1=mt_rand().'_N'.$filename1;
// $folder1 = 'dialouge/'.$image_name1;

// move_uploaded_file($tempname1, $folder1);
// } 

// $update=mysqli_query($conn,"update tbl_dialogue_item set title='".$_POST['title']."',content='".addslashes($_POST['firstcontent'])."',image='".$image_name1."' where id='".$_POST['id']."'");

// if($update){
//     echo 1;
// }   
// break;


// case'updatedialogueitemindia':
//   $sel1=mysqli_query($conn,"select image from  tbl_dialogue_item_india   where id='".$_POST['id']."'");
// $result1=mysqli_fetch_object($sel1);
// $timage1=$result1->image; 
// if($_FILES["pro_img1"]["name"]==""){
//  $image_name1= $timage1;  
// }
// else{
//  $filename1 = $_FILES["pro_img1"]["name"];
// $tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name1=mt_rand().'_N'.$filename1;
// $folder1 = 'dialouge/'.$image_name1;

// move_uploaded_file($tempname1, $folder1);
// } 

// $update=mysqli_query($conn,"update tbl_dialogue_item_india  set title='".$_POST['title']."',content='".addslashes($_POST['firstcontent'])."',image='".$image_name1."' where id='".$_POST['id']."'");

// if($update){
//     echo 1;
// }   
// break;


// // case'updatedialoguecontentindia':
// //   $sel1=mysqli_query($conn,"select image from  tbl_dialogue_item_india   where id='".$_POST['id']."'");
// // $result1=mysqli_fetch_object($sel1);
// // $timage1=$result1->image; 
// // if($_FILES["pro_img1"]["name"]==""){
// //  $image_name1= $timage1;  
// // }
// // else{
// //  $filename1 = $_FILES["pro_img1"]["name"];
// // $tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

// // $image_name1=mt_rand().'_N'.$filename1;
// // $folder1 = 'dialouge/'.$image_name1;

// // move_uploaded_file($tempname1, $folder1);
// // } 

// // $update=mysqli_query($conn,"update tbl_dialogue_item_india set title='".$_POST['title']."',content='".addslashes($_POST['firstcontent'])."',image='".$image_name1."' where id='".$_POST['id']."'");

// // if($update){
// //     echo 1;
// // }   

// // echo "update tbl_dialogue_item_india set title='".$_POST['title']."',content='".addslashes($_POST['firstcontent'])."',image='".$image_name1."' where id='".$_POST['id']."'";
// // break;

// case'delete_dialogue_item':
// $delete=mysqli_query($conn,"delete from tbl_dialogue_item where id='".$_POST['id']."'"); 
// if($delete){
//     echo 1;
// }        
// break; 

// case'delete_dialogue_item_india':
// $delete=mysqli_query($conn,"delete from tbl_dialogue_item_india  where id='".$_POST['id']."'"); 
// if($delete){
//     echo 1;
// }     
// break;    

// case'updatelifeatsalientcontent':
//   $sel1=mysqli_query($conn,"select banner_img,mob_img from  tbl_lifeatsalient  where id='".$_POST['id']."'");
// $result1=mysqli_fetch_object($sel1);
// $timage1=$result1->banner_img; 
// $timage2=$result1->mob_img; 
// if($_FILES["pro_img"]["name"]==""){
//  $image_name1= $timage1;  
// }
// else{
//  $filename1 = $_FILES["pro_img"]["name"];
// $tempname1 = $_FILES["pro_img"]["tmp_name"]; 

// $image_name1=mt_rand().'_L'.$filename1;
// $folder1 = 'project_image/'.$image_name1;

// move_uploaded_file($tempname1, $folder1);
// } 



// if($_FILES["pro_img1"]["name"]==""){
//  $image_name2= $timage2;  
// }
// else{
//  $filename2 = $_FILES["pro_img1"]["name"];
// $tempname2 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name2=mt_rand().'_L'.$filename2;
// $folder2 = 'project_image/'.$image_name2;

// move_uploaded_file($tempname2, $folder2);
// } 
// $update=mysqli_query($conn,"update tbl_lifeatsalient set title='".$_POST['title']."',content1='".addslashes($_POST['firstcontent'])."',content2='".addslashes($_POST['secondcontent'])."',banner_img='".$image_name1."',mob_img='".$image_name2."' where id='".$_POST['id']."'");

// if($update){
//     echo 1;
// }      
// break; 

// case'addtag':
// $insert=mysqli_query($conn,"insert into tbl_tag(tag_name) values ('".$_POST['tname']."')");
// if($insert){
//     echo 1;
// }
// break;

// case'delete_tag':
//  $delete=mysqli_query($conn,"delete from tbl_tag where id='".$_POST['id']."'"); 
// if($delete){
//     echo 1;
// }     
// break;    

// case'addlifevideoitem':
// $filename1 = $_FILES["pro_img"]["name"];
// $tempname1 = $_FILES["pro_img"]["tmp_name"]; 

// $image_name1=mt_rand(100000,999999).'_L'.$filename1;

// $folder1 = 'project_image/'.$image_name1;

// if(move_uploaded_file($tempname1, $folder1)){    
// $insert=mysqli_query($conn,"insert into tbl_video_item (title,link,image) values ('".$_POST['title']."','".$_POST['link']."','".$image_name1."')");
// if($insert){
//     echo 1;
// } 
// }
// break;  

// case'editlifevideoitem':
//  $sel1=mysqli_query($conn,"select image from  tbl_video_item  where id='".$_POST['id']."'");
// $result1=mysqli_fetch_object($sel1);
// $timage1=$result1->image; 
// if($_FILES["pro_img"]["name"]==""){
//  $image_name1= $timage1;  
// }
// else{
//  $filename1 = $_FILES["pro_img"]["name"];
// $tempname1 = $_FILES["pro_img"]["tmp_name"]; 

// $image_name1=mt_rand().'_L'.$filename1;
// $folder1 = 'project_image/'.$image_name1;

// move_uploaded_file($tempname1, $folder1);
// }    
// $update=mysqli_query($conn,"update tbl_video_item set title='".$_POST['title']."',link='".$_POST['link']."',image='".$image_name1."'  where id='".$_POST['id']."'");  
// if($update){
//     echo 1;
// } 
// break; 

// case'delete_videoitem':
// $delete=mysqli_query($conn,"delete from tbl_video_item where id='".$_POST['id']."'"); 
// if($delete){
//     echo 1;
// }      
// break;

// case'addexpitem':
// $filename1 = $_FILES["pro_img1"]["name"];
// $tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name1=mt_rand(100000,999999).'_D'.$filename1;

// $folder1 = 'home/'.$image_name1;

// if(move_uploaded_file($tempname1, $folder1)){
// $insert=mysqli_query($conn,"insert into  tbl_sub_cat (cat_id,sub_cat_name,image) values (1,'".$_POST['title']."','".$image_name1."')");

// if($insert){
//  echo 1;   
// } 
// }
// break;
// case'editexpitem':
//  $sel1=mysqli_query($conn,"select image from  tbl_sub_cat  where sub_cat_id='".$_POST['id']."'");
// $result1=mysqli_fetch_object($sel1);
// $timage1=$result1->image; 
// if($_FILES["pro_img1"]["name"]==""){
//  $image_name1= $timage1;  
// }
// else{
//  $filename1 = $_FILES["pro_img1"]["name"];
// $tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name1=mt_rand().'_L'.$filename1;
// $folder1 = 'home/'.$image_name1;

// move_uploaded_file($tempname1, $folder1);
// } 

// $update=mysqli_query($conn,"update tbl_sub_cat set cat_id=1,sub_cat_name='".$_POST['title']."',image='".$image_name1."' where sub_cat_id='".$_POST['id']."'");

// if($update){
//     echo 1;
// }     
// break;
// case'delete_exp':
// $delete=mysqli_query($conn,"delete from tbl_sub_cat where sub_cat_id='".$_POST['id']."'"); 
// if($delete){
//     echo 1;
// }     
// break;

// case'edithomedialogue':
//  $sel1=mysqli_query($conn,"select image1,image2,image3,image4 from  tbl_home_dialogue_nature_item   where id='".$_POST['id']."'");
// $result1=mysqli_fetch_object($sel1);
// $timage1=$result1->image1;
// $timage2=$result1->image2;
// $timage3=$result1->image3;
// $timage4=$result1->image4;
// if($_FILES["pro_img1"]["name"]==""){
//  $image_name1= $timage1;  
// }
// else{
//  $filename1 = $_FILES["pro_img1"]["name"];
// $tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name1=mt_rand().'_L'.$filename1;
// $folder1 = 'home/'.$image_name1;

// move_uploaded_file($tempname1, $folder1);
// } 


// if($_FILES["pro_img2"]["name"]==""){
//  $image_name2= $timage2;  
// }
// else{
//  $filename2 = $_FILES["pro_img2"]["name"];
// $tempname2 = $_FILES["pro_img2"]["tmp_name"]; 

// $image_name2=mt_rand().'_L'.$filename2;
// $folder2 = 'home/'.$image_name2;

// move_uploaded_file($tempname2, $folder2);
// } 


// if($_FILES["pro_img3"]["name"]==""){
//  $image_name3= $timage3;  
// }
// else{
//  $filename3 = $_FILES["pro_img3"]["name"];
// $tempname3 = $_FILES["pro_img3"]["tmp_name"]; 

// $image_name3=mt_rand().'_L'.$filename3;
// $folder3 = 'home/'.$image_name3;

// move_uploaded_file($tempname3, $folder3);
// } 


// if($_FILES["pro_img4"]["name"]==""){
//  $image_name4= $timage4;  
// }
// else{
//  $filename4 = $_FILES["pro_img4"]["name"];
// $tempname4 = $_FILES["pro_img4"]["tmp_name"]; 

// $image_name4=mt_rand().'_L'.$filename4;
// $folder4 = 'home/'.$image_name4;

// move_uploaded_file($tempname4, $folder4);
// } 

// $update=mysqli_query($conn,"update tbl_home_dialogue_nature_item set image1='".$image_name1."',image2='".$image_name2."',image3='".$image_name3."',image4='".$image_name4."',content='".addslashes($_POST['firstcontent'])."' where id='".$_POST['id']."'");

// if($update){
//     echo 1;
// }  

    
// break; 

// case'adddualogueindia':
// $filename1 = $_FILES["pro_img1"]["name"];
// $tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name1=mt_rand(100000,999999).'_D'.$filename1;

// $folder1 = 'home/'.$image_name1;

// if(move_uploaded_file($tempname1, $folder1)){
// $insert=mysqli_query($conn,"insert into  tbl_home_dialogue_with_india   (title,image) values ('".$_POST['title']."','".$image_name1."')");

// if($insert){
//  echo 1;   
// }  
// }
// break; 

// case'editdiaindia':
//  $sel1=mysqli_query($conn,"select image from  tbl_home_dialogue_with_india  where id='".$_POST['id']."'");
// $result1=mysqli_fetch_object($sel1);
// $timage1=$result1->image; 
// if($_FILES["pro_img1"]["name"]==""){
//  $image_name1= $timage1;  
// }
// else{
//  $filename1 = $_FILES["pro_img1"]["name"];
// $tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name1=mt_rand().'_L'.$filename1;
// $folder1 = 'home/'.$image_name1;

// move_uploaded_file($tempname1, $folder1);
// } 

// $update=mysqli_query($conn,"update tbl_home_dialogue_with_india set title='".$_POST['title']."',image='".$image_name1."' where id='".$_POST['id']."'");

// if($update){
//     echo 1;
// }      
// break;

// case'delete_dialogue_india':
// $delete=mysqli_query($conn,"delete from tbl_home_dialogue_with_india where id='".$_POST['id']."'"); 
// if($delete){
//     echo 1;
// }        
// break;

// case'edithomestudio':
// $sel1=mysqli_query($conn,"select big_image,small_image from  tbl_home_studio where id='".$_POST['id']."'");
// $result1=mysqli_fetch_object($sel1);
// $timage1=$result1->big_image;
// $timage2=$result1->small_image;

// if($_FILES["pro_img1"]["name"]==""){
//  $image_name1= $timage1;  
// }
// else{
//  $filename1 = $_FILES["pro_img1"]["name"];
// $tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name1=mt_rand().'_L'.$filename1;
// $folder1 = 'home/'.$image_name1;

// move_uploaded_file($tempname1, $folder1);
// } 


// if($_FILES["pro_img2"]["name"]==""){
//  $image_name2= $timage2;  
// }
// else{
//  $filename2 = $_FILES["pro_img2"]["name"];
// $tempname2 = $_FILES["pro_img2"]["tmp_name"]; 

// $image_name2=mt_rand().'_L'.$filename2;
// $folder2 = 'home/'.$image_name2;

// move_uploaded_file($tempname2, $folder2);
// }  

// $update=mysqli_query($conn,"update tbl_home_studio set title1='".$_POST['title1']."',title='".$_POST['title']."',big_image='".$image_name1."',small_image='".$image_name2."' where id='".$_POST['id']."'");

// if($update){
//     echo 1;
// } 
// break;

// case'edithomenews':
// $sel1=mysqli_query($conn,"select image from tbl_home_news  where id='".$_POST['id']."'");
// $result1=mysqli_fetch_object($sel1);
// $timage1=$result1->image;


// if($_FILES["pro_img1"]["name"]==""){
//  $image_name1= $timage1;  
// }
// else{
//  $filename1 = $_FILES["pro_img1"]["name"];
// $tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name1=mt_rand().'_L'.$filename1;
// $folder1 = 'home/'.$image_name1;

// move_uploaded_file($tempname1, $folder1);
// } 

// $update=mysqli_query($conn,"update tbl_home_news set image='".$image_name1."',content='".addslashes($_POST['firstcontent'])."' where id='".$_POST['id']."'");

// if($update){
//     echo 1;
// } 
// break;

// case'updatenetanimationitem':
// $sel=mysqli_query($conn,"select image1,image2,image3,image4,image5,image6,image7,image8,image9,image10,image11,image12,image13,image14,image15 from  tbl_net_positive_banner_animation_images where id='".$_POST['id']."'");
// $result=mysqli_fetch_object($sel);
// $timage1=$result->image1;
// $timage2=$result->image2;
// $timage3=$result->image3;
// $timage4=$result->image4;
// $timage5=$result->image5;
// $timage6=$result->image6;
// $timage7=$result->image7;
// $timage8=$result->image8;
// $timage9=$result->image9;
// $timage10=$result->image10;
// $timage11=$result->image11;
// $timage12=$result->image12;
// $timage13=$result->image13;
// $timage14=$result->image14;
// $timage15=$result->image15;



// if($_FILES["pro_img1"]["name"]==""){
//  $image_name1= $timage1;  
// }
// else{
//  $filename1 = $_FILES["pro_img1"]["name"];
// $tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name1=mt_rand().'_L'.$filename1;
// $folder1 = 'netpositive/'.$image_name1;

// move_uploaded_file($tempname1, $folder1);
// } 

// if($_FILES["pro_img2"]["name"]==""){
//  $image_name2= $timage2;  
// }
// else{
//  $filename2 = $_FILES["pro_img2"]["name"];
// $tempname2 = $_FILES["pro_img2"]["tmp_name"]; 

// $image_name2=mt_rand().'_L'.$filename2;
// $folder2 = 'netpositive/'.$image_name2;

// move_uploaded_file($tempname2, $folder2);
// } 

// if($_FILES["pro_img3"]["name"]==""){
//  $image_name3= $timage3;  
// }
// else{
//  $filename3 = $_FILES["pro_img3"]["name"];
// $tempname3 = $_FILES["pro_img3"]["tmp_name"]; 

// $image_name3=mt_rand().'_L'.$filename3;
// $folder3 = 'netpositive/'.$image_name3;

// move_uploaded_file($tempname3, $folder3);
// } 

// if($_FILES["pro_img4"]["name"]==""){
//  $image_name4= $timage4;  
// }
// else{
//  $filename4 = $_FILES["pro_img4"]["name"];
// $tempname4 = $_FILES["pro_img4"]["tmp_name"]; 

// $image_name4=mt_rand().'_L'.$filename4;
// $folder4 = 'netpositive/'.$image_name4;

// move_uploaded_file($tempname4, $folder4);
// } 

// if($_FILES["pro_img5"]["name"]==""){
//  $image_name5= $timage5;  
// }
// else{
//  $filename5 = $_FILES["pro_img5"]["name"];
// $tempname5 = $_FILES["pro_img5"]["tmp_name"]; 

// $image_name5=mt_rand().'_L'.$filename5;
// $folder5 = 'netpositive/'.$image_name5;

// move_uploaded_file($tempname5, $folder5);
// } 



// if($_FILES["pro_img6"]["name"]==""){
//  $image_name6= $timage6;  
// }
// else{
//  $filename6 = $_FILES["pro_img6"]["name"];
// $tempname6 = $_FILES["pro_img6"]["tmp_name"]; 

// $image_name6=mt_rand().'_L'.$filename6;
// $folder6 = 'netpositive/'.$image_name6;

// move_uploaded_file($tempname6, $folder6);
// }
// if($_FILES["pro_img7"]["name"]==""){
//  $image_name7= $timage7;  
// }
// else{
//  $filename7 = $_FILES["pro_img7"]["name"];
// $tempname7 = $_FILES["pro_img7"]["tmp_name"]; 

// $image_name7=mt_rand().'_L'.$filename7;
// $folder7 = 'netpositive/'.$image_name7;

// move_uploaded_file($tempname7, $folder7);
// }
// if($_FILES["pro_img8"]["name"]==""){
//  $image_name8= $timage8;  
// }
// else{
//  $filename8 = $_FILES["pro_img8"]["name"];
// $tempname8 = $_FILES["pro_img8"]["tmp_name"]; 

// $image_name8=mt_rand().'_L'.$filename8;
// $folder8 = 'netpositive/'.$image_name8;

// move_uploaded_file($tempname8, $folder8);
// }
// if($_FILES["pro_img9"]["name"]==""){
//  $image_name9= $timage9;  
// }
// else{
//  $filename9 = $_FILES["pro_img9"]["name"];
// $tempname9 = $_FILES["pro_img9"]["tmp_name"]; 

// $image_name9=mt_rand().'_L'.$filename9;
// $folder9 = 'netpositive/'.$image_name9;

// move_uploaded_file($tempname9, $folder9);
// }
// if($_FILES["pro_img10"]["name"]==""){
//  $image_name10= $timage10;  
// }
// else{
//  $filename10 = $_FILES["pro_img10"]["name"];
// $tempname10 = $_FILES["pro_img10"]["tmp_name"]; 

// $image_name10=mt_rand().'_L'.$filename10;
// $folder10 = 'netpositive/'.$image_name10;

// move_uploaded_file($tempname10, $folder10);
// }




// if($_FILES["pro_img11"]["name"]==""){
//  $image_name11= $timage11;  
// }
// else{
//  $filename11 = $_FILES["pro_img11"]["name"];
// $tempname11 = $_FILES["pro_img11"]["tmp_name"]; 

// $image_name11=mt_rand().'_L'.$filename11;
// $folder11 = 'netpositive/'.$image_name11;

// move_uploaded_file($tempname11, $folder11);
// }

// if($_FILES["pro_img12"]["name"]==""){
//  $image_name12= $timage12;  
// }
// else{
//  $filename12 = $_FILES["pro_img12"]["name"];
// $tempname12 = $_FILES["pro_img12"]["tmp_name"]; 

// $image_name12=mt_rand().'_L'.$filename12;
// $folder12 = 'netpositive/'.$image_name12;

// move_uploaded_file($tempname12, $folder12);
// }

// if($_FILES["pro_img13"]["name"]==""){
//  $image_name13= $timage13;  
// }
// else{
//  $filename13 = $_FILES["pro_img13"]["name"];
// $tempname13 = $_FILES["pro_img13"]["tmp_name"]; 

// $image_name13=mt_rand().'_L'.$filename13;
// $folder13 = 'netpositive/'.$image_name13;

// move_uploaded_file($tempname13, $folder13);
// }

// if($_FILES["pro_img14"]["name"]==""){
//  $image_name14= $timage14;  
// }
// else{
//  $filename14 = $_FILES["pro_img14"]["name"];
// $tempname14 = $_FILES["pro_img14"]["tmp_name"]; 

// $image_name14=mt_rand().'_L'.$filename14;
// $folder14 = 'netpositive/'.$image_name14;

// move_uploaded_file($tempname14, $folder14);
// }

// if($_FILES["pro_img15"]["name"]==""){
//  $image_name15= $timage15;  
// }
// else{
//  $filename15 = $_FILES["pro_img15"]["name"];
// $tempname15 = $_FILES["pro_img15"]["tmp_name"]; 

// $image_name15=mt_rand().'_L'.$filename15;
// $folder15 = 'netpositive/'.$image_name15;

// move_uploaded_file($tempname15, $folder15);
// }

// $update=mysqli_query($conn,"update  tbl_net_positive_banner_animation_images  set image1='".$image_name1."',image2='".$image_name2."',image3='".$image_name3."',image4='".$image_name4."',image5='".$image_name5."',image6='".$image_name6."',image7='".$image_name7."',image8='".$image_name8."',image9='".$image_name9."',image10='".$image_name10."',image11='".$image_name11."',image12='".$image_name12."',image13='".$image_name13."',image14='".$image_name14."',image15='".$image_name15."' where id='".$_POST['id']."'");
// if($update){
//     echo 1;
// }
// //echo "update  tbl_net_positive_banner_animation_images  set image1='".$image_name1."',image2='".$image_name2."',image3='".$image_name3."',image4='".$image_name4."',image5='".$image_name5."',image6='".$image_name6."',image7='".$image_name7."',image8='".$image_name8."',image9='".$image_name9."',image10='".$image_name10."',image11='".$image_name11."',image12='".$image_name12."',image13='".$image_name13."',image14='".$image_name14."',image15='".$image_name15."', where id='".$_POST['id']."'";
// break;  

// case'addptag':
// $insert=mysqli_query($conn,"insert into tbl_project_tag(tag_name,status) values ('".$_POST['tname']."',1)");
// if($insert){
//     echo 1;
// }   
// //echo "insert into tbl_project_tag(tag_name) values ('".$_POST['tname']."')";
// break;

// case'editptag':
//  $update=mysqli_query($conn,"update tbl_project_tag set tag_name='".$_POST['tname']."',status='".$_POST['status']."' where id='".$_POST['id']."'"); 
//  if($update){
//     echo 1;
// }
// //echo "update tbl_project_tag set tag_name='".$_POST['tname']."',status='".$_POST['status']."' where id='".$_POST['id']."'";
// break; 

// case'change_pro_stat':
//  $update=mysqli_query($conn,"update  tbl_project set status='".$_POST['stat']."' where pro_id='".$_POST['id']."'")    ;
// if($update){
//     echo 1;
// }   
// break; 

// case'editaboutintrocontent':
//  $sel1=mysqli_query($conn,"select image from tbl_about_us_intro  where id='".$_POST['id']."'");
// $result1=mysqli_fetch_object($sel1);
// $timage1=$result1->image; 
// if($_FILES["pro_img"]["name"]==""){
//  $image_name1= $timage1;  
// }
// else{
//  $filename1 = $_FILES["pro_img"]["name"];
// $tempname1 = $_FILES["pro_img"]["tmp_name"]; 

// $image_name1=mt_rand().'_L'.$filename1;
// $folder1 = 'upload_image/'.$image_name1;

// move_uploaded_file($tempname1, $folder1);
// } 

// $update=mysqli_query($conn,"update tbl_about_us_intro set title='".$_POST['title']."',description='".addslashes($_POST['firstcontent'])."',image='".$image_name1."' where id='".$_POST['id']."'");

// if($update){
//     echo 1;
// }    
// break; 

// case'editaboutcounter':
//   $update=mysqli_query($conn,"update  tbl_about_counter set name1='".$_POST['title']."',number1='".$_POST['title1']."',name2='".$_POST['title2']."',number2='".$_POST['title3']."',name3='".$_POST['title4']."',number3='".$_POST['title5']."',name4='".$_POST['title6']."',number4='".$_POST['title7']."' where id='".$_POST['id']."'") ; 
// if($update){
//     echo 1;
// }

// //echo "update  tbl_about_counter set name1='".$_POST['title']."',number1='".$_POST['title1']."',name2='".$_POST['title2']."',number2='".$_POST['title3']."',name3='".$_POST['title4']."',number3='".$_POST['title5']."',name4='".$_POST['title6']."',number4='".$_POST['title6']."' where id='".$_POST['id']."'";
// break; 

// case'addmarksofsuccess':
// $filename1 = $_FILES["pro_img1"]["name"];
// $tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name1=mt_rand(100000,999999).'_D'.$filename1;

// $folder1 = 'upload_image/'.$image_name1;

// if(move_uploaded_file($tempname1, $folder1)){
// $insert=mysqli_query($conn,"insert into  tbl_about_marks_of_success (title,image) values ('".$_POST['title']."','".$image_name1."')");

// if($insert){
//  echo 1;   
// }  
// }    
// break; 
// case'updatemarksofsuccess':
//  $sel1=mysqli_query($conn,"select image from tbl_about_marks_of_success where id='".$_POST['id']."'");
// $result1=mysqli_fetch_object($sel1);
// $timage1=$result1->image; 
// if($_FILES["pro_img1"]["name"]==""){
//  $image_name1= $timage1;  
// }
// else{
//  $filename1 = $_FILES["pro_img1"]["name"];
// $tempname1 = $_FILES["pro_img1"]["tmp_name"]; 

// $image_name1=mt_rand().'_L'.$filename1;
// $folder1 = 'upload_image/'.$image_name1;

// move_uploaded_file($tempname1, $folder1);
// } 

// $update=mysqli_query($conn,"update tbl_about_marks_of_success set title='".$_POST['title']."',image='".$image_name1."' where id='".$_POST['id']."'");

// if($update){
//     echo 1;
// }       
// break; 

// case'delete_marksofsuccess':
// $delete=mysqli_query($conn,"delete from tbl_about_marks_of_success where id='".$_POST['id']."'"); 
// if($delete){
//     echo 1;
// }     
// break;    
default:
    
echo "Some thing is wrong";

}
?>

MMCT - 2023