Advertisement
Guest User

tanya

a guest
Aug 30th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. $url = 'http://ibacor.com/api/jadwal-bioskop?id='.$id;
  2. $json = file_get_contents($url);
  3. $data = json_decode($json, true);
  4. $awal = json_decode($json);
  5. $jum = count($data['data']);
  6.  
  7. echo "KOTA :".$awal->kota."<br/>"
  8. ."TANGGAL :".$awal->date;
  9. echo
  10. "</div>
  11. </div>";
  12.  
  13. echo "<table class='table table-striped table-hover'>";
  14. echo "<thead>
  15. <tr>
  16. <th>FILM</th>
  17. <th>DETAIL</th>
  18. <th>Bioskop</th>
  19. <th>Jam</th>
  20. <th>Harga</th>
  21. </tr>
  22. </thead>";
  23. for($i=0; $i<$jum; $i++){
  24. $row = $data['data'][$i];
  25. $no= $i+1;
  26. echo "<tbody>
  27. <tr>
  28. <td>$row[movie]<br/><img src=$row[poster] style='width:50%;' border='0' alt='Null'/></td>
  29. <td>$row[genre]<br/>$row[duration]</td>
  30. <td></td>
  31. <td></td>
  32. <td></td>
  33. </tr>
  34. </tbody>";
  35. }
  36. echo "</table>";
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement