PHP Classes

File: admin/color-progress-theme.php

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   Giga CMS   admin/color-progress-theme.php   Download  
File: admin/color-progress-theme.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: 798 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_theme= mysqli_real_escape_string($conn,$_POST['color_theme']);
$link_color= mysqli_real_escape_string($conn,$_POST['link_color']);
$body_color= mysqli_real_escape_string($conn,$_POST['body_color']);

$query = "UPDATE `".MLS_PREFIX."color_theme` SET `color_theme`='$color_theme', `link_color`='$link_color', `body_color`='$body_color'";
mysqli_query($conn,$query)or die(mysqli_error());

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