Home : Products : Gossamer Links : Development, Plugins and Globals :

Products: Gossamer Links: Development, Plugins and Globals: Re: [sangiro] Passing LIMIT to a global from a tag: Edit Log

Here is the list of edits for this post
Re: [sangiro] Passing LIMIT to a global from a tag
Try changing;

Code:
$search_db->select_options ('ORDER BY Add_Date DESC Limit 8');

...to

Code:
$search_db->select_options ("ORDER BY Add_Date DESC","LIMIT $_[0]");

...and then call with <%global_name('5')%>

... and that should show 5 results Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: May 16, 2004, 2:28 AM

Edit Log: