Meetings every second Tuesday
$_SESSION dump
I'm using the $_SESSION array to hold information while navigating a complex web site. Nearing the end of development, I now need to pull most of everything out of $_SESSION.
Question: how do I pull all the variable names out of $_SESSION into some document to be used to copy/paste variable names into a SQL query.
Thanks.




Show session
If you just need to see what is in the session just do...
Or even better, have PHP build your SQL
session_start(); foreach($_SESSION as $key => $value) { print "UPDATE table SET $key = '$value'"; }hope this helps...
Thank you Sam.
Thank you Sam.
What is the error you get?
What is the error you get?