Buongiorno a tutti, avrei bisogno di una mano da chi è più esperto di me.
Dovrei estrarre un altro dato da questa query:
codice:
$sQuery = ("select s.*,c.Title as ctitle,c.ID as cid,p.ID as uid,CONCAT(p.fname,' ',lname) as user from Store s inner join StoreCategories c on c.ID=s.categoryID inner join Profiles p on p.ID=s.userID where ".($_SESSION['location']['condition']!=''?'s.userID in '.$_SESSION['location']['condition'].' and ':'')." s.type=0 and s.status=0 order by s.ID desc limit 2 ");
Il dato si trova nella tabella "StoreCategories" (già presente nella query qui sopra), nella colonna "SlugCat" e si trova a livello del dato estratto in "c.ID".
La query cosi com'è va benissimo ma mi serve una mano per aggiungere quel pezzetto mancante.
Grazie infinite in anticipo a chi vorrà darmi una mano