Page 1 of 1

Passing variables through multiple files?

Posted: Thu Dec 19, 2002 3:23 am
by jonat8
Hi,

Is this possible?

I have a PHP page, called index.php that consists soley of includes to other php pages, each which query a database.

In one of these other php pages (call it data.php) there is quite a lot of data so I want the user to be able to sort the database, so I put some sort links above the data that refreshes the page and resorts the data, i.e. data.php?sortby=fieldname

But clicking on that link only displays the "data.php" section of my page, and not the data from the other includes that are in index.php

So is it possible to pass the variable through index.php, as in if my sort links referenced to index.php?sortby=fieldname, it would sort the data.php dataset and display all the includes in index.php too

Hope you understood that!
Any ideas appreciated

Thanks :)