PHP Classes

File: admin/color-progress.php

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   Giga CMS   admin/color-progress.php   Download  
File: admin/color-progress.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Giga CMS
Multi-user content management system
Author: By
Last change:
Date: 7 years ago
Size: 719 bytes
 

Contents

Class file image Download
<?php
include "../inc/init.php";

$servername = "$set->db_host";
$username = "$set->db_user";
$password = "$set->db_pass";
$dbname = "$set->db_name";

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);

// Check connection
if ($conn->connect_error) {
    die(
"Connection failed: " . $conn->connect_error);
}


$color_font= mysqli_real_escape_string($conn,$_POST['color_font']);
$color_background= mysqli_real_escape_string($conn,$_POST['color_background']);

$query = "UPDATE `".MLS_PREFIX."color` SET `color_font`='$color_font', `color_background`='$color_background'";
mysqli_query($conn,$query)or die(mysqli_error());

header("location: slideshow.php");
?>