$msg="Hi, You are invited for the event '".$bkData['event_name']."', and show is on '".$showTime."'. Booking ID ".$post_data['bookId'].". Find the QR Code ".base_url('/'.$bkData['qrcode']);
if(!empty($invite_ids)){
foreach($invite_idsAS$userId){
$usrData=$this->db->get_where('customer',
array('customer_id'=>$userId))->row_array();
$this->sendSMS($usrData['phone'],$msg);
if(!empty($bkData)){
$subject="Your Tickets - TimeOut";
$showTime=date("d'S F Y - h:i, (l)",strtotime($bkData['show_time']));
$msgContent="Hi, Your booking is confirmed for the event '".
$bkData['event_name']."' and show is on '".$showTime."'.
$msg="Hi, You are invited for the event '".$bkData['event_name']."', and show is on '".$showTime."'. Booking ID ".$post_data['bookId'].". Find the QR Code ".base_url('/'.$bkData['qrcode']);