Skip to content

Instantly share code, notes, and snippets.

@purwandi
Last active December 29, 2015 23:59
Show Gist options
  • Save purwandi/7746254 to your computer and use it in GitHub Desktop.
Save purwandi/7746254 to your computer and use it in GitHub Desktop.
<?php
function smsPullInsert($data){
$esme = $data['esme'];
$keyword= $data['keyword'];
$alias = $data['alias'];
$module = 'pull';
$message = $data['message'];
$rate = $data['rate'];
$start = $data['start'];
$stop = $data['stop'];
//insert smsservice
$insertService = DB::table($this->tblService)->insert(array(
// 'id' => $service, kalau auto increment ngak perlu di set :)
'esme' => $esme,
'keyword' => $keyword,
'alias' => $alias,
'module' => $module
));
$insertSubs = DB::table($this->tblPull)->insert(array(
'service' => $insertService->id,
'message' => $message,
'rate' => $rate,
'start' => $start,
'stop' => $stop
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment