Dynadot โ€” .com Transfer

Help with JOIN

SpaceshipSpaceship
Watch
Impact
38
help with INNER JOIN

REZIZIZIZIZOLVED
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
I'm assuming "T_LISTINGS" is a constant for pmd_listings2cat:
PHP:
$results = $db->GetAll("
	SELECT membership, business_short, " . T_LISTINGS . ".selector, firmname, friendly_url, date, zip, loc_id, loc_text
	FROM " . T_LISTINGS . "
	INNER JOIN " . T_CONFIG_MEMBERSHIPS . " ON " . T_LISTINGS . ".membership=" . T_CONFIG_MEMBERSHIPS . ".selector
	WHERE date_expire > NOW()
		AND admin_approved=1
		AND " . T_CONFIG_MEMBERSHIPS . ".featured_sidebox = 'YES'
		AND " . T_LISTINGS . ".loc_id = '$location[id]'
		AND " . T_LISTINGS . ".cat_id = " . (int)$_GET['id'] . "
		GROUP BY " . T_LISTINGS . ".selector
		ORDER BY RAND(), " . T_LISTINGS . ".membership
		LIMIT 0, $config[sidebox_listing_number]
");
 
0
•••
EDIT: Figured it out :) Thanks SV>
 
Last edited:
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back