D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
realadss
/
kavyaeventz.in
/
admin
/
ajax
/
Filename :
Service-update.php
back
Copy
<?php include"../connection.php"; $id = $_POST['id']; $bannerimage = $_FILES['banner']; $meta1 = $_POST['meta1']; $meta2 = $_POST['meta2']; $meta3 = $_POST['meta3']; $meta4 = $_POST['meta4']; $script = $_POST['script']; $pixcel = $_POST['pixcel']; $escaped_html_line = $conn->real_escape_string($pixcel); $alt = $_POST['alt']; $bannerimageold = $_POST['bannerold']; $temper = $bannerimage['tmp_name']; move_uploaded_file($temper, '../images/new/'.$bannerimageold); $pname = $_POST['pname']; $replaceArray0 = array( '"' => """, "'" => "'", ); $modifiedText0 = str_replace(array_keys($replaceArray0), array_values($replaceArray0), $pname); $editordata1 = $_POST['editordata1']; $replaceArray1 = array( '"' => """, "'" => "'", ); $modifiedText1 = str_replace(array_keys($replaceArray1), array_values($replaceArray1), $editordata1); $sql = "UPDATE `service_cat` SET `name`='$modifiedText0',`meta1`='$meta1',`meta2`='$meta2',`meta3`='$meta3',`meta4`='$meta4',`script`='$script',`pixcel`='$escaped_html_line',`banner`='$bannerimageold',`alt`='$alt',`des`='$modifiedText1' WHERE id = '$id'"; // echo $sql; // die(); $query = mysqli_query($conn, $sql); if($query){ echo 1; }else{ echo 2; } ?>