1 2 3 |
$result = DB::table(self::$tableName) ->where('id', $future_id) ->update($data); |
$result is affected row number, not true/false. So do not use following script to detect query is successful or not:
1 2 3 4 |
if($result == false){ echo 'Failed'; exit(); } |