Tutorials Shared by the Internet Community
|Top Tutorials||New Tutorials||Submit||Login||Register|
Tutorial Basic Detail
Total Hits: 12325
Total Votes: 139 votes
Average Rating: 2.81 out of 5
Category: PHP/File Handling
I worked on a PHP project where I needed to write and delete HTML table rows without any database support.
Write HTML table to a file and surround each row with HTML comments containing unique id. Using preg_replace function, find the row surrounded with unique comment and modify it.
First I had to figure out the file structure. In my case I needed three files: 1. file that contains the table; 2.file to display table; 3.file that executs requests.