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

Finding links by Expiry type

Quote Reply
Finding links by Expiry type
Hi,

I'd like to run an SQL query to find all links with Expiry Never and change them to No Payment Required ... but here's the thing ... I can't find how the field is set.

When I look into the Links table, all the expiry dates are the same.

I've compared a link with Never against one with No Payment Required and can't find a field that differentiates them. Am I missing something, or is the info stored elsewhere?

I suspect it's simple and I'm just not seeing it. Anyone?

Cheers,
Shaun
Quote Reply
Re: [qango] Finding links by Expiry type In reply to
Hi,

I believe this will get links that are not set to expire:

Code:
SELECT ExpiryDate FROM glinks_Links WHERE ExpiryDate = '2147483647'

..and;

Code:
SELECT ExpiryDate FROM glinks_Links WHERE ExpiryDate > 2147483647

..to find listings that have an expiry date.

Hope that helps.

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!
Quote Reply
Re: [Andy] Finding links by Expiry type In reply to
Andy,

Thanks for the info, this was driving me nuts Smile

I finally found out (thanks to your prompting) that links with Never have an expiry date of '2147483646'.

All changed now ... thanks very much.

Cheers,
Shaun
Quote Reply
Re: [qango] Finding links by Expiry type In reply to
Hi,

Glad I could help 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!