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?

Leave a Reply


Hire Me
Follow Me!
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.