Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------原始程式碼------------------------
- 行數 檔案名count_demo.php
- 413 public function update_tblclip($aData,$id){
- 414 // print_r($aData);
- 415 /*Array
- 416 (
- 417 [clipID] => 13521
- 418 [clipName] => 測試影片 第01集
- 419 [clipFile] => \\192.168.1.5\demo\055_01.mp4
- 420 [clipStart] => 0
- 421 [clipEnd] => 1795
- 422 [videoDuration] => 1796
- 423 clipThumbnail
- 424 [clipNote] => 測試說明
- 425 )*/
- 426 if(count($aData['Timestamp'])===count($aData['TimestampTitle']) && count($aData['TimestampTitle'])>0){
- 427 foreach($aData['TimestampTitle'] as $key => $value){
- 428 if($value!==''){
- 429 $new_Timestamp[] = $aData['Timestamp'][$key];
- 430 $new_TimestampTitle[] = $value;
- 431 }
- 432 }
- 433 }
- 434 if(count($new_TimestampTitle)>0){
- 435 $aData['Timestamp'] = json_encode($new_Timestamp,JSON_UNESCAPED_UNICODE);
- 436 $aData['TimestampTitle'] = json_encode($new_TimestampTitle,JSON_UNESCAPED_UNICODE);
- 437 }else{
- 438 $aData['Timestamp'] = '';
- 439 $aData['TimestampTitle'] = '';
- 440 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement