
10-31-2006, 06:55 AM
|
 |
|
|
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by oz_moses
There's a donation link in the admin section on your webtemplates.
Is it possible to pass a variable between a webtemplate and a webquery? I'm using webtemplates to display the Fixtures for upcoming sporting events, and will have a thread for each Fixture. I'd like to show the number of replies, views and have a link to the last post in each thread, and if I could do this it'd avoid creating 300+ almost identical webqueries.
What I'd like to do is
create a webquery called $WQ_thread_info
call this from a webtemplate, and pass a threadid at the same time, eg
$WQ_thread_info(10699)
Have the webquery run a select statement which is filtered by my threadid
eg:
select replycount, views, lastpostid from thread
where threadid = 10699
Thanks for any info you can give me,
Moses.
|
yes possible. Please see private message WQ as a sample and I also have some explainations in this thread.
|