소스 검색

is userid not being pulled?

would help if I actually START the session :/
development
mauirixxx 8 년 전
부모
커밋
76a87b0cfb
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      gw-toon.php

+ 2
- 0
gw-toon.php 파일 보기

@@ -1,4 +1,5 @@
<?php
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)
@@ -12,6 +13,7 @@ if ($whattoon == "0" or $whattoon == ""){
die ('There was an error running the query [' . $con->error . ']');
}
echo '<TITLE>Character Selection</TITLE><BODY>';
echo 'your userid is ' . $userid . '<BR />';
echo '<CENTER><FORM METHOD="POST">';
echo '<SELECT NAME="cnameid" onchange="this.form.submit()">';
echo '<OPTION SELECTED DISABLED>Select a Character</OPTION>';


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