Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <a href="COL1"><IMG SRC="COL2" />COL3</a>
- $separation_char = "|"; // character separating fields
- $filename = "test.csv";
- $row = 1;
- if (($handle = fopen($filename, "r")) !== FALSE) {
- while (($data = fgetcsv($handle, 1000, $separation_char)) !== FALSE) {
- echo '<a href="' . $data[0] . '"><IMG SRC="' . $data[1] . '" />' . $data[2] . '</a>';
- }
- fclose($handle);
- }
Add Comment
Please, Sign In to add comment