Last active
December 29, 2015 23:59
-
-
Save purwandi/7746254 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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