Bläddra i källkod

one more thing moving to session data

development
mauirixxx 8 år sedan
förälder
incheckning
1227d31230
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. +2
    -1
      gw-toon.php

+ 2
- 1
gw-toon.php Visa fil

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


Laddar…
Avbryt
Spara