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

Output something if global returns nothing

Quote Reply
Output something if global returns nothing
OK, so:

$sth = $search_db->select ( { isNew => 'Yes', isValidated => 'Yes' });

if neither conditions are matched how would I output some text so I can then do a <%if no_text%> in the templates.

As it is, there is not output to work with.

~ ERASER


Free JavaScripts @ Insight Eye
Quote Reply
Re: [Eraser] Output something if global returns nothing In reply to
Hi,

Bit hard to really get what your trying to do? Is it a global/can you post it?

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Output something if global returns nothing In reply to
Hi Andy,

I discovered I can do a <%if globlaname.length%> to do something when the globat returns nothing.

This works really great!

Thanks anyways.

~ ERASER


Free JavaScripts @ Insight Eye