Concatenate Mysql Query in PHP
im having problems concatenating this query:
$sql.=' WHERE ticket.dept_id IN('.implode(',',$thisuser->getDepts()).') OR ticket.staff_id='.db_input($thisuser->getId());
with this:
AND ticket.brand_id IN('.implode(',',$thisuser->getBrands())
how can i achive this?
Total Views: 9 Today Views: 0















