PHP Classes

File: uploady/admin/roles/actions/update.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   Uploady PHP Upload File to MySQL   uploady/admin/roles/actions/update.php   Download  
File: uploady/admin/roles/actions/update.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Uploady PHP Upload File to MySQL
Store file upload details in a MySQL database
Author: By
Last change: refactor
Code refactor
Date: 4 months ago
Size: 645 bytes


Class file image Download
require_once '../../session.php';

$role = new Uploady\Role($db, $user);

if (
$msg_code = "";

    if (!
$auth->checkToken($_POST['csrf'], $_SESSION['csrf'])) {

$id = (int) $_POST['id'];

$msg_code = $role->updateRole(
) ? "role_updated" : "error";