Estimados
Estoy aca de nuevo con una consulta.
Necesito mostrar un contenido segun el usuario que se loguee.
Cada vez que un usuario se loguee podra ingresar a la pestaña de My Favorites
En esta pestaña debe aparecer la informacion que corresponda a cada uno.
Como puedo hacer esto?
La informacion que necesito mostrar la mando a llamar de diferentes tablas el script es el siguiente
$this->_query = ' SELECT p.*,
lb.propid,
lb.uid,
c.name as name_category,
cy.name as name_country,
s.name as name_state,
l.name as name_locality,
pf.name as name_profile,
pf.logo_image as logo_image_profile, '
. ' CASE WHEN CHAR_LENGTH(p.alias) THEN CONCAT_WS(":", p.id, p.alias) ELSE p.id END as Pslug,'
. ' CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(":", c.id, c.alias) ELSE c.id END as Cslug,'
. ' CASE WHEN CHAR_LENGTH(t.alias) THEN CONCAT_WS(":", t.id, t.alias) ELSE t.id END as Typeslug, '
. ' CASE WHEN CHAR_LENGTH(cy.alias) THEN CONCAT_WS(":", cy.id, cy.alias) ELSE cy.id END as CYslug,'
. ' CASE WHEN CHAR_LENGTH(s.alias) THEN CONCAT_WS(":", s.id, s.alias) ELSE s.id END as Sdslug,'
. ' CASE WHEN CHAR_LENGTH(l.alias) THEN CONCAT_WS(":", l.id, l.alias) ELSE l.id END as Lslug '
. ' FROM #__properties_products AS p '
. ' LEFT JOIN #__properties_category AS c ON c.id = p.parent '
. ' LEFT JOIN #__properties_type AS t ON t.id = p.type '
. ' LEFT JOIN #__properties_country AS cy ON cy.id = p.cyid '
. ' LEFT JOIN #__properties_state AS s ON s.id = p.sid '
. ' LEFT JOIN #__properties_locality AS l ON l.id = p.lid '
. ' LEFT JOIN #__properties_profiles AS pf ON pf.mid = p.agent_id '
. ' LEFT JOIN #__properties_lightbox AS lb ON p.id = lb.propid '
. ' WHERE p.published = 1 '
. ' AND lb.propid = p.id '. ' AND lb.uid = '.$user->id
pero no logro que me aparezca nada
que estoy haciendo mal?