Quote:
Originally Posted by TigerWare
The only caveat in the above configuration is the hard-coded id in the Query No Result Row. This is required because the LWT does not parse field result values in anything other than the Query Result Row. If the LWT could parse field values in Result Prefix Code, Result Affix Code and Query No Result Row, it would be utterly fantastic!
|
In your example you want to use postid returned in a
Query No Result Row but it does not make sense because query no result row applies only when there is no results returned (which means there is no postid either). So how could the hack get that variable in the first place?
I guess you can do what you wanted by using "webquery phpinclude before" section: If you add a firstpostid query there and save it in a variable then you can use it in other section later.
Eg.
$querymypostid = $db->query_first("
SELECT firstpostid
FROM " . TABLE_PREFIX . "thread AS thread
WHERE threadid = 0000
");
$mypostid = $querymypostid[firstpostid];
Now you can use $mypostid variable in the
Query No Result Row.