GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — minuteit/grp_edit.php at master · rachetm/minuteit Expand file tree/ Copy pathgrp_edit.phpMore file actions 71 lines (60 loc) · 1.94 KB / Copy pathgrp_edit.phpFile metadata and controls71 lines (60 loc) · 1.94 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 <?php session_start(); require_once 'include/db.php'; if(isset($_SESSION['logged_in']) && $_SESSION['logged_in'] == true) { if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) { $group = $_POST['grp_name']; $grp = str_replace(" ","_",$group[0]); $stmt = $con->prepare("DELETE FROM `groups` WHERE `grp_name` = ?"); $stmt->bind_param("s",$grp); if($stmt->execute()) { if(!isset($_POST['members']) || $_POST['members'] == "") { echo "success"; exit(); } $stmt1 = $con->prepare("INSERT INTO `groups` VALUES (?,?,?,?)"); $stmt1->bind_param("ssss",$grp_name,$fac_id,$fac_name,$fac_email); $names = $_POST['names']; $members = $_POST['members']; $emails = $_POST['emails']; $i = 0; foreach ($members as $member) { $grp_name = $group[0]; $fac_id = $member; $fac_name = $names[$i]; $fac_email = $emails[$i]; if(!($stmt1->execute())) { echo "error"; exit(); } $i++; } echo "success"; exit(); } else { echo "error"; exit(); } } else { echo "error"; exit(); } } else { $_SESSION['message'] = "You are logged out. Please login to continue!"; $_SESSION['type'] = "danger"; header("Location: ./index.php"); exit(); } ?> |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |