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: 5 years ago
Size: 798 bytes


Class file image Download
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) {
"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");

For more information send a message to info at phpclasses dot org.