// Get Items
$result = dbquery("SELECT ac.*,
au.user_id, au.user_name, au.user_status, au.user_avatar, au.user_level, au.user_joined
FROM ".DB_FAQS." ac
LEFT JOIN ".DB_USERS." AS au ON ac.faq_name=au.user_id
WHERE ac.faq_status='1' AND ".groupaccess("ac.faq_visibility").
(multilang_table('FQ') ? " AND ac.faq_language='".LANGUAGE."'" : '').($cat ? " AND faq_cat_id='$cat'" : ' AND faq_cat_id=0')."
GROUP BY ac.faq_id ORDER BY ac.faq_cat_id ASC, ac.faq_id ASC
// Get Items
$result = dbquery("SELECT ac.*,
au.user_id, au.user_name, au.user_status, au.user_avatar, au.user_level, au.user_joined
FROM ".DB_FAQS." ac
LEFT JOIN ".DB_USERS." AS au ON ac.faq_name=au.user_id
WHERE ac.faq_status='1' AND ".groupaccess("ac.faq_visibility").
(multilang_table('FQ') ? " AND ac.faq_language='".LANGUAGE."'" : '').($cat ? " AND faq_cat_name='$cat'" : ' AND faq_cat_id=0')."
GROUP BY ac.faq_name ORDER BY ac.faq_cat_name ASC, ac.faq_name ASC
");
Category Forum
Content Administration - 9Labels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions