浏览代码

one more thing moving to session data

development
mauirixxx 8 年前
父节点
当前提交
1227d31230
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      gw-toon.php

+ 2
- 1
gw-toon.php 查看文件

@@ -3,7 +3,8 @@ session_start();
include_once 'gw-connect.php';
$con = new mysqli(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME);
$userid = $_SESSION['userid']; //need to actually pull this info from cookie/session (preferable)
$whattoon = mysqli_real_escape_string($con, $_POST['cnameid']);
//$whattoon = mysqli_real_escape_string($con, $_POST['cnameid']);
$whattoon = $_SESSION['playerid'];
if ($con->connect_errno > 0){
die ('Unable to connect to database [' . $db->connect_errno . ']');
}


正在加载...
取消
保存