is from clock.sponsor and works nicely but not what I want.Code:$tpl = new Template; $sp_expire = date('Y-m-d H:i:s'); $query = " select * from idx_link left join idx_paid_listing on (idx_link.link_id = idx_paid_listing.link_id) where sponsored = 1 and expire > '$sp_expire' order by rand() limit 5"; $sp_links = $dbConn->FetchArray($query);
Since I am not good with sql I am stuck.
For top level categories only I would like to select rand some number of sponsor, featured or basic. This list needs to consist of only those resources which exist in the subcategories of the top level category.
Since the parent list is basically a ; separated list is this going to have to be a 2 or more step process?
Anyone please?


LinkBack URL
About LinkBacks
).

