I have searched around for the answer to this but everything I try gives me an error.
I have a php function:
function _buildQueryCategoryK2Multiple(){
$query="select id,title,alias,catid,introtext FROM #__k2_items where published=1 and catid=17";
return $query;
}
Basically I would like to add another line to $query, something like:
function _buildQueryCategoryK2Multiple(){
$query1="select id,title,alias,catid,introtext FROM #__k2_items where published=1 and catid=17";
$query2="select id,title,alias,catid,introtext FROM #__k2_items where published=1 and catid=18";
return $query1.$query2;
}
If I do this though I get an error. Does anyone know the correct way to do this? Thank you
catidis either 17 or 18?