File "index.php"
Full Path: /home/custbahd/tourismfraternity.com/admin/blogs/auto/index.php
File size: 362 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
session_start();
include_once('../../db/saucerer.php');
$sql = "UPDATE blogs SET blog_type = 'Image'";
//use for MySQLi OOP
if($conn->query($sql)){
$_SESSION['success'] = 'All blogs updated successfully';
}
else{
$_SESSION['error'] = 'Something went wrong while updating the blogs!';
}
header('location: ../');
?>