D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
home
/
shubmkcj
/
urbane.createerp.com
/
Filename :
insert-manufacturer.php
back
Copy
<?php ob_start(); session_start(); include 'config.php'; $manufacture = addslashes(stripslashes($_POST['manufacture'])); $manufacture_display_name = addslashes(stripslashes($_POST['manufacture_display_name'])); $contact_person = addslashes(stripslashes($_POST['contact_person'])); $designation = addslashes(stripslashes($_POST['designation'])); $address = addslashes(stripslashes($_POST['address'])); $city = addslashes(stripslashes($_POST['city'])); $state = addslashes(stripslashes($_POST['state'])); $country = addslashes(stripslashes($_POST['country'])); $pin = addslashes(stripslashes($_POST['pin'])); $currency = addslashes(stripslashes($_POST['currency'])); $payment_terms = addslashes(stripslashes($_POST['payment_terms'])); $email = addslashes(stripslashes($_POST['email'])); $phone = addslashes(stripslashes($_POST['phone'])); $sourceId = addslashes(stripslashes($_POST['sourceId'])); $sql = "INSERT INTO `manufacturer`(`manufacturer`, `manufacturer_display_name`, `contact_person_name`, `contact_person_designation`, `address`, `city`, `state`, `country`, `pin`, `currency`, `payment_terms`, `source_id`, `email`, `phone`) VALUES ('$manufacture','$manufacture_display_name','$contact_person','$designation','$address','$city','$state','$country','$pin','$currency','$payment_terms','$sourceId','$email','$phone')"; if ($conn->query($sql) === TRUE) { echo '<script>localStorage.setItem("ManufacturerAdded", "true");</script>' ; echo '<script>location.replace("manufacturer.php")</script>' ; } else { echo '<script>alert("Error !")</script>'; } ?>