Hello, I am extremely new to PHP and I have a question that I think is easy to code, but I've searched and cannot get the right answer. I basically have a text file that looks like the following: Name,Last Name, Date, Email, comment_name, comment, comment_name, comment, ... , ... , ... ,... Now I want to execute all of that but I want to keep repeating from comment_name till there is nothing left after the "," this is because I am allowing many comments with as many names as they want... I know that I have to use the while() loop to keep it going and to stop but how? thank you
So your trying to extract the information out of the text file and then output it one by one? http://www.theukwebdesigncompany.com/articles/article.php?article=165 Some of that article won't be what you want, but what you need is in there. Enjoy
twistedspikes, that's what I want to do but the fopen, or fget won't work because it will read the entire file.. i just need it a to constantly repeat a single line
Yeah, you need to read the whole file into the PHP and put it in an array. After that you can use a while loop to go through it - as it shows in that article.