Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $url = 'http://ibacor.com/api/jadwal-bioskop?id='.$id;
- $json = file_get_contents($url);
- $data = json_decode($json, true);
- $awal = json_decode($json);
- $jum = count($data['data']);
- echo "KOTA :".$awal->kota."<br/>"
- ."TANGGAL :".$awal->date;
- echo
- "</div>
- </div>";
- echo "<table class='table table-striped table-hover'>";
- echo "<thead>
- <tr>
- <th>FILM</th>
- <th>DETAIL</th>
- <th>Bioskop</th>
- <th>Jam</th>
- <th>Harga</th>
- </tr>
- </thead>";
- for($i=0; $i<$jum; $i++){
- $row = $data['data'][$i];
- $no= $i+1;
- echo "<tbody>
- <tr>
- <td>$row[movie]<br/><img src=$row[poster] style='width:50%;' border='0' alt='Null'/></td>
- <td>$row[genre]<br/>$row[duration]</td>
- <td></td>
- <td></td>
- <td></td>
- </tr>
- </tbody>";
- }
- echo "</table>";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement