Ok, this has been bugging the hell out of me all day and I can't seem to figure it out. I have a site that I have been running both locally as well as on a remote server and everything works fine. We have recently switched hosting companies and I'm trying to get this up and running on the new host.
It looks as though a session variable is not being assigned a value.
Here is the code where I try to do this:
if (isset($_GET["size"])){
$_SESSION["size"] = $_GET["size"];
}
if (!isset($_SESSION["size"])){
$_SESSION["size"] = "5x7";
}
$itemSize = $_SESSION["size"];
As you can see, I'm trying to assign $_SESSION["size"] either through a GET variable or give it a default ("5x7")
The value passed gets matched up w/ collums in the db and is called like:
$row[$_SESSION["size"]
or
$row[$itemSize]
If I manually pass the name of the collum I want to pull (like $row["5x7"]), it pulls the correct data. So I know the db is set up right and working. I've even tried doing a print_r($_SESSION) and all of the other vars are fine. But this one just shows up w/ no value.
Any ideas?