app/Channel.php
// function to add channel to database
function to add channel to database
function to add channel to database
public function addChannel($channelName, $status, $channelCode){
		$date_created = date('Y-m-d H:i:s');
    	$result = DB::insert('INSERT INTO channel(channelName, status, channelCode, date_created) VALUES (?,?,?,?)', [$channelName, $status, $channelCode, $date_created]);
    	return $result;
	}
public function addChannel ( $ channelName , $ status , $ channelCode ) { $ date_created = date ( 'Y-m-d H:i:s' ) ; $ result = DB :: insert ( 'INSERT INTO channel(channelName, status, channelCode, date_created) VALUES (?,?,?,?)' , [ $ channelName , $ status , $ channelCode , $ date_created ] ) ; return $ result ; }
function to add channel to database
function to add channel to database