Delete HTML table rows without any database support
Advertisements
| Top Tutorials | New Tutorials | Submit | Login | Register |
Tutorial Detail
Delete HTML table rows without any database support
Problem I worked on a PHP project where I needed to write and delete HTML table rows without any database support.http://bewebmaster.com/241.php
Total Hits: 2231
Total Votes: 24 votes
Category: PHP/File Handling
Submitted on: 2008-03-16 05:48:39
Submitted By: Devesh Khanna
Description:
ProblemI worked on a PHP project where I needed to write and delete HTML table rows without any database support.
Solution
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.
How to...
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. More detail...
Rating Detail
| Stars | Percentage | Total Vote |
|---|---|---|
![]() |
![]() ![]() 16.67% |
4 |
![]() ![]() |
![]() ![]() 16.67% |
4 |
![]() ![]() ![]() |
![]() ![]() 16.67% |
4 |
![]() ![]() ![]() ![]() |
![]() ![]() 16.67% |
4 |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() 16.67% |
4 |





16.67%

16.67%

16.67%

16.67%

16.67%