Gossamer Forum
Home : Products : Gossamer Links : Pre Sales :

Special SQL Query

Quote Reply
Special SQL Query
Hi all,

im looking for a special query to get all new links for a special category.
Without having alternate cats, it seems no problem, but with it i dont get till now:

I think it must be something like:

get all the LinkdID from CategoryAlternates WHERE CategoryID = X
(SELECT * FROM CategoryAlternates WHERE CategoryID = x)

putting in an array:

while ($link = $sth->fetchrow_hashref) { ???? }

Then something like:

SELECT * FROM Links WHERE CategoryID = x AND all from array order by $LINKS{build_sort_order_home} LIMIT 5!

Hope someone knows more about that mine.

Robert

Subject Author Views Date
Thread Special SQL Query Robert 4462 Aug 30, 2000, 2:37 PM
Thread Re: Special SQL Query
pugdog 4400 Aug 30, 2000, 3:18 PM
Thread Re: Special SQL Query
Robert 4397 Aug 30, 2000, 4:42 PM
Thread Re: Special SQL Query
pugdog 4393 Aug 30, 2000, 6:23 PM
Thread Re: Special SQL Query
Alex 4387 Sep 9, 2000, 10:48 AM
Post Re: Special SQL Query
pugdog 4365 Sep 9, 2000, 4:01 PM