D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
lampp
/
htdocs
/
admin
/
Filename :
aboutSql.php
back
Copy
<?php require_once ('db.php'); if (isset($_POST['Submit'])) { $about_tagline=$_POST['about_tagline']; $about_desc =$_POST['about_desc']; $para_sec = $_POST['para_sec']; $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = "UPDATE about SET about_tagline ='$about_tagline',about_desc ='$about_desc',para_sec='$para_sec' 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>"; } // } ?>