D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
lampp
/
htdocs
/
admin
/
Filename :
address.php
back
Copy
<?php require_once ('db.php'); if (isset($_POST['Submit'])) { $address=$_POST['address']; $mobile =$_POST['mobile']; $mobile2 =$_POST['mobile2']; $email2 =$_POST['email2']; $email = $_POST['email']; $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = "UPDATE address SET address ='$address',mobile ='$mobile',email='$email',mobile2 ='$mobile2',email2='$email2' WHERE id = '1' "; // $sql = "INSERT INTO address (address, mobile, email) // VALUES ('$address', '$mobile', '$email')"; $conn->exec($sql); echo "<script>alert('Successfully Updated!!!'); window.location='index.php'</script>"; } // } ?>