I'm so sorry to respond so late. I thought that I would receive a notification when people posted to this topic. Thank you everyone for your time and responses to this.
My text file (movieinfo.txt) is formatted like the example below:
image_source_for_poster
some_movie_name
[www....] youtube_link.com?v=5aDlBO25gEA
image_source_for_poster
some_movie_name
[www....] youtube_link.com?v=5aDlBO25gEA
image_source_for_poster
some_movie_name
[www....] youtube_link.com?v=5aDlBO25gEA
( etc.)
What I am trying to do is read a group of three lines into an array, plug them in as variables into HTML, and then repeat the process with the next three lines, and so on and so on until the end of the text file is reached. I've tried a few different scripts but will either get just the first three lines as an output or if I'm actually able to get variables to plug into the html it breaks up the text lines and thus makes the link nonfunctioning. I keep feeling like this should be a simple function but I just can't seem to grasp it and the tutorials and post that I have found only address reading of the text file into an array but not outputting it into a specific format.
Anyway, I thought I'd reach out for some assistance. BTW, I'm not completely set on the text format I have above. I would be just as content with the following format:
image_source_for_poster, some_movie_name, [www....] youtube_link.com?v=5aDlBO25gEA
image_source_for_poster, some_movie_name, [www....] youtube_link.com?v=5aDlBO25gEA
image_source_for_poster, some_movie_name, [www....] youtube_link.com?v=5aDlBO25gEA
This is an example of the code result my messed up script is generating:
<div id='linkbox'><img src=C.L.A.S.S, [
youtube.com...] width='150' height='auto' /><a href=5aDlBO25gEA,1.jpg
></a></div></br><div id='linkbox'><img src=INFESTATION, [
youtube.com...] width='150' height='auto' /><a href=cpDBIWiy-sg, 2.jpg
></a></div></br><div id='linkbox'><img src=CREEPSHOW RAW, [
youtube.com...] width='150' height='auto' /><a href=XVASIYPXmpk, 3.jpg
></a></div></br><div id='linkbox'><img src=POE, [
youtube.com...] width='150' height='auto' /><a href=evY00_5SYCE,4.jpg
></a></div></br><div id='linkbox'><img src=ME & YOU AND EVERYONE WE KNOW, [
google.com,...] 5.jpg
width='150' height='auto' /><a href=></a></div></br><div id='linkbox'><img src=MY BIG FAT INDEPENDENT MOVIE, [
youtube.com...] width='150' height='auto' /><a href=fvipnU9IjzM,
></a></div></br><div id='linkbox'><img src=6.jpg
width='150' height='auto' /><a href=></a></div></br><div id='linkbox'><img src=
width='150' height='auto' /><a href=></a></div></br><div id='linkbox'><img src= width='150' height='auto' /><a href=></a></div></br>
You can tell upon close examination that the URLs and everything else is not inserting correctly.
Thanks for taking a look at this post. Any help or solution would be greatly appreciated.
-R-