Thread: PHP Problem
View Single Post
Old 12-01-2010, 03:05:38 PM     #20 (permalink)
davedevelopment

 
davedevelopment's Avatar
 
Join Date: May 2009
Location: Brough, East Yorks
Posts: 993
davedevelopment has a reputation beyond reputedavedevelopment has a reputation beyond reputedavedevelopment has a reputation beyond reputedavedevelopment has a reputation beyond reputedavedevelopment has a reputation beyond reputedavedevelopment has a reputation beyond reputedavedevelopment has a reputation beyond reputedavedevelopment has a reputation beyond reputedavedevelopment has a reputation beyond reputedavedevelopment has a reputation beyond reputedavedevelopment has a reputation beyond repute

This wont be exactly right, but should put you on track! No more help from me after this, you'll learn the most by finding your own way!

PHP Code:

<?php

$obj 
json_decode(file_get_contents($url));

?>
<table>
    <tr>
        <th>Title</th>
        <th>Year</th>
        <th>Country</th>
        <th>Genres</th>
        <th>Rating</th>
        <th>&nbsp;</th>
    </tr>
    <tr>
        <td><?php echo htmlentities($obj->title);?></td>
        <td><?php echo htmlentities($obj->year);?></td>
        <td><?php echo htmlentities($obj->country);?></td>
        <td><?php echo htmlentities($obj->genres);?></td>
        <td><?php echo htmlentities($obj->rating);?></td>
        <td><a href="<?php echo htmlentities($obj->imdburl);?>">More info</a></td> 
    </tr>
</table>
__________________
Me: Blog | Company | Twitter

Coming Soon: DaveDomains | DaveCatcher | FreeToReg.co.uk
davedevelopment is offline