There is probably a simple solution to this question, but if i have the function below and $events contains an unknown number of integers, how would I use the $events variable in a query like this?
function remove_events($events)
{
$sql = "delete from events where event_id in $events";
$query = $this->db->query($sql);
}
if $event is a single value then you must use
Or if it is an array