Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $row = 1;
- if (($handle = fopen("movies.txt", "r")) !== FALSE) {
- while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
- for ($i = 0; $i <= $num; $i = $i+4) {
- $num = count($data);
- $row++;
- echo "<h2>" . $data[$i] . "</h2>\n";
- echo "<a href=" . $data[$i + 1] . ">" . $data[$i] . "</a>\n"; echo "/"; echo "<strong>Released:</strong> " . $data[$i + 2] . "<br />\n";
- echo "<strong>Rating</strong>: " . $data[$i + 3] . "/5 <br />\n";
- echo "<strong>Message:</strong> " . $data[$i + 4] . "\n";
- }
- }
- fclose($handle);
- }
- ?>
Add Comment
Please, Sign In to add comment