PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
What is your data source, a document? What do you mean by "The page is sorted so that every four lines are supposed to be inserted into one row in the database"? Is the page a document, like a text file??