Passing variable to wiki page sql
I am trying to create a series of pages where the last page is a drill-down detail of the first page.
I have successfully created the initial page using a sql statement pulling data from a mysql table. I can create a link that calls a second "static" page with the drill down detail. I would rather create the drill down page on the fly from the first page.
see: http://pearson424.org/tiki/tiki-index.php?page=Test+2
with the drill down. This method requires that i make 200+ secondary pages. i feel i should be able to create the secondary pages on the fly as it's a very simple sql statement but i haven't figure out the correct syntax.
I found a page that says I should be able to do something like:
In tiki1.10, you have the possibility to pass global variables as the
username to the query
\{\SQL(db=>local, 0=>$user, 1=>5)}SELECT * from users_users WHERE login=? OR
userid=?\{SQL\}
where 0 is for the first ? and 1 for the second
thanks for any information
- pat