I have what is basically an include page with several predefined mysql queries in it. When the user goes to the link labelled as one of these queries a page comes up with a textarea that now contains that query. They can change the query (or not) and click submit and a table comes up with the result set. That works fine.
Now I added a link above the table which, on my home machine running php5, spits out an application/octet-stream containing a text version of the table and it works great. But when I upload it to my site (which is running 4.1.3 I think) it gives me the old "Query was empty" warning and exits.
Now I know that the cause of this is that the $SESSION[query] variable is not being passed to the linked page. I stripped it down bare so all I ask is for it to echo the $SESSION[query] variable and it just gives me a blank screen.
The weird thing is, I have another session variable, a user id, which passes to this page just fine! Is there some reason that a mysql query or a variable which is retrieved from another page wont pass properly in a session variable.
Please Help!