View Single Post
  #1 (permalink)  
Old 15th June 2009, 14:12
JB4 JB4 is offline
D4PHP User
 
Join Date: Oct 2008
Posts: 15
JB4 is on a distinguished road
Default Query Parameters

Hey guys,

Just wondering - we've got a setup that all works - SQL query control dropped onto the page that populates a database grid.

However, we now wish to change the query depending on a stored SESSION variable.

So - whereas the SQL control says something along the lines of

SELECT * FROM database1.table1, we need it to be something along the lines of SELECT * FROM $_SESSION['databasename'].table - is this doable?

Cheers in advance,
John
Reply With Quote
Sponsored Links