X7ROOT File Manager
Current Path:
/home/u742491609/domains/apca.org.in/public_html/admin
home
/
u742491609
/
domains
/
apca.org.in
/
public_html
/
admin
/
??
..
??
.htaccess
(98 B)
??
add-blog.php
(4.24 KB)
??
add-blog1.php
(3.14 KB)
??
add-blog2.php
(4.77 KB)
??
add-blog3.php
(3.71 KB)
??
all-blog.php
(5.62 KB)
??
all-blog1.php
(2.07 KB)
??
all-subscriber.php
(1.83 KB)
??
assets
??
connection.php
(675 B)
??
connectivity
??
convocation
??
dashboard.php
(1.57 KB)
??
delete-blog.php
(332 B)
??
edit-add-blog.php
(5.25 KB)
??
edit-add-blog1.php
(9.63 KB)
??
edit-blog.php
(5.12 KB)
??
error_log
(4.92 KB)
??
footer.php
(954 B)
??
header.php
(2.21 KB)
??
inaugration
??
index.php
(3.6 KB)
??
logout.php
(80 B)
??
others
??
passing-out-parade
??
republic-independence
??
short-term
??
sidebar.php
(4.43 KB)
??
track_visitors.php
(1.29 KB)
??
uploads
Editing: all-blog1.php
<?php session_start(); $email = $_SESSION["email"]; if(!isset($_SESSION["email"])){ header("location: index.php"); } include("../connection.php"); include 'header.php'; include 'sidebar.php'; ?> <div class="page-wrapper"> <div class="content container-fluid"> <div class="page-header"> <div class="row"> <div class="col"> <h3 class="page-title">Blog Table</h3> <ul class="breadcrumb"> <li class="breadcrumb-item"><a href="index.php">Dashboard</a></li> / <li class="breadcrumb-item active">Blog Table</li> </ul> </div> <div class="col-auto text-end float-end ms-auto"> <a href="add-blog.php" class="btn btn-outline-primary me-2"><i class="fas fa-plus"></i> Add</a> </div> </div> </div> <div class="row"> <div class="col-sm-12"> <div class="card"> <div class="card-body"> <div class="table-responsive"> <table class="datatable table table-stripped"> <thead> <tr> <th>Image</th> <th>Title</th> <th>Description</th> <th>Actions</th> </tr> </thead> <tbody> <?php $sql = $conn->prepare("SELECT * FROM `blog` ORDER BY `id` DESC"); $sql->execute(); $i=1; if($sql->rowCount()>0){ $rows = $sql->fetchAll(); foreach($rows as $rowh){ ?> <tr <?php echo $i; ?>> <td><img height="60" width="90" lass="img-responsive" alt="Event" src="../uploads/<?php echo $rowh['img']; ?>"/></td> <td><?php echo $rowh['blog_name']; ?></td> <td><?php $text = $rowh['description']; if(strlen($text)>0): $text=substr($text,0,85); echo html_entity_decode($text); endif; ?> </td> <td><a href="edit-blog.php?id=<?=$rowh['id']?>" class="btn btn-sm bg-success-light me-2"> <i class="fas fa-pen"></i> </a> <a onClick="return confirm('Do you want to delete this blog <?=$rowh["blog_name"];?>');" href="delete-blog.php?id=<?=$rowh['id']?>" class="btn btn-sm bg-danger-light"> <i class="fas fa-trash"></i> </a></td> </tr> <?php $i++; } } ?> </tbody> </table> </div> </div> </div> </div> </div> </div> <?php include 'footer.php'; ?>
Upload File
Create Folder