D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
realadss
/
.trash
/
admin
/
Filename :
home-seo.php
back
Copy
<?php include('include/header.php'); $selectsql1 = mysqli_query($conn, "select * from home_page where id = '1'"); $datasql1 = mysqli_fetch_array($selectsql1); if(isset($_POST['add'])){ $seo_content = $_POST['seo_content']; $sql = "UPDATE `home_page` SET `seo_content`='$seo_content' WHERE id = '1'"; $data= mysqli_query($conn, $sql); if($data){ echo "<script> alert('Data Updated');window.location.href='home-seo.php'</script>"; } else{ echo "<script> alert('Please try again')</script>"; } } ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <div class="container-full"> <!-- Content Header (Page header) --> <div class="content-header"> <div class="d-flex align-items-center"> <div class="me-auto"> <h4 class="page-title">Home Page SEO</h4> </div> </div> </div> <!-- Main content --> <section class="content"> <div class="box"> <div class="box-header with-border"> <h4 class="box-title">Home Page SEO</h4> </div> <!-- /.box-header --> <div class="box-body"> <form role="form" method="POST" enctype="multipart/form-data"> <!-- text input --> <div class="form-group"> <label class="form-label">SEO Syntax</label> <textarea rows='6' class="form-control" name="seo_content"><?php echo $datasql1['seo_content'] ?? '';?></textarea> </div> <div class="box-footer"> <button type="submit" value="add" class="btn btn-success" name="add">Update</button> </div> </form> </div> <!-- /.box-body --> </div> </section> <!-- /.content --> </div> </div> <!-- /.content-wrapper --> <?php include('include/footer.php') ?>