Jump to content

using $_SESSION vars in a query


gammaman

Recommended Posts

tell me what one easy to guess then the other...............

 

<?php session_start();

$_SESSION['student']['user']="redarrow";

echo " Changed session to: ".$_SESSION['student']['user']." <br><br>";


$suser=$_SESSION['student']['user']="paul";


echo " Set varable Changed session to: $suser <br><br>";
?>

 

 

 

why would you asssume that the 'user' is made of letters, what if they are made of numbers, what about

special characters, or maybe its a combination of all three ;)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.