Browse Source

is userid not being pulled?

would help if I actually START the session :/
development
mauirixxx 8 years ago
parent
commit
76a87b0cfb
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      gw-toon.php

+ 2
- 0
gw-toon.php View File

@@ -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>';


Loading…
Cancel
Save