소스 검색

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 . ']');
}


불러오는 중...
취소
저장