Difference between revisions of "Issuepedia:Code/lib/links"

From Issuepedia
Jump to navigation Jump to search
(→‎ShowTopic(topic,max): debugging weirdness)
(→‎ShowTopic(topic,max): incremental debugging of weirdness)
Line 137: Line 137:
 
   </for>
 
   </for>
 
</func>
 
</func>
<func ShowTopic2 topic max></func>
+
<func ShowTopic2 topic max>
 +
  <let name=topic self with="_"> </let>
 +
 
 +
  <let name=sql>(cl_to='</let>
 +
  <let name=sql>SELECT q1.* FROM qryW3_Titles_Catgs AS q1 LEFT JOIN qryW3_Titles_Catgs AS q2 ON q1.cl_from=q2.cl_from WHERE (q1.cl_to='Data/links') AND (q2.cl_to='</let>
 +
  <let name=sql append copy=topic />
 +
  <let name=sql append>') ORDER BY page_title DESC</let>
 +
  <if flag=max>
 +
    <let name=sql append> LIMIT </let>
 +
    <let name=sql append copy=max />
 +
  </if>
 +
  <let name=sql append copy=max />
 +
 
 +
  <let name=links.rtn null />
 +
</func>

Revision as of 21:16, 19 September 2011

GetBrief()


> function getbrief() <= ()

ShowRecent()


> function showrecent() <= ()

ShowTopic_old(iTopic,iMax)


> function showtopic_old() <= ()

ShowTopic(topic,max)


> function showtopic() <= ()
> function showtopic2() <= ()