<?php require_once "../../models/index/index.php"; require_once "../connection/connect.php"; $index = new index(); require_once "../../models/index/simpleImage.php"; $image = new simpleImage(); $cnct = new cnct_class(); $cnct->cnct(); if (!isset($_POST)) { die('No Data Sent'); } $table = $_POST['table']; $Table = $index->capitalize($table); ?> <html> <body STYLE="background-color:transparent;color:red;"> <p style="vertical-align:middle;border:1px solid gray;"> <?php //var_dump($_FILES);die(); $data = array(); $note = 'No Post'; if (isset($_POST)) { foreach ($_POST as $key => $post) { if ($key != 'table') { //**************************** save schedule as array ******************************** if (strpos($key, 'schedule_') !== false) { // $setSchedule = true; // $schedule[substr($key, 9)] = $post;
<?php session_start(); require_once "../connection/connect.php"; require_once "../../models/index/index.php"; require_once "../../models/index/simpleImage.php"; $cnct = new cnct_class(); $cnx = $cnct->cnct(); $index_data['cnx'] = $cnx; $index = new index($index_data); $image = new simpleImage($index_data); $images_added = array(); //$index->show($_FILES); ?> <html> <body STYLE="background-color:transparent;color:red;"> <p style="vertical-align:middle;border:1px solid gray;"> <?php //var_dump($_FILES);die(); $data = array(); $note = 'No Post'; unset($_POST['choice']); unset($_POST['background[date_cr]']); if (isset($_POST)) { foreach ($_POST as $table => $postTable) { $data = array(); foreach ($postTable as $key => $post) { //**************************** save schedule as array ******************************** if (strpos($key, 'schedule_') !== false) { // $setSchedule = true;
<?php session_start(); require_once "../connection/connect.php"; require_once "../../models/index/index.php"; require_once "../../models/index/simpleImage.php"; $cnct = new cnct_class(); $cnx = $cnct->cnct(); $index_data['cnx'] = $cnx; $index = new index($index_data); $image = new simpleImage($index_data); $table = $_POST['table']; $Table = $index->capitalize($table); $data = array(); if (isset($_POST)) { foreach ($_POST as $key => $post) { if ($key != 'table' && $key != 'item') { //**************************** save schedule as array ******************************** if (strpos($key, 'schedule_') !== false) { // $setSchedule = true; // $schedule[substr($key, 9)] = $post; // } else { // //**************************** save schedule as array ******************************** $data[$key] = $post; } } }