Delete HTML table rows without any database support
  Delete HTML table rows without any database support - Web Hosting by Hostway
2D Graphics
3D Graphics
Web Design & Development
Business Applications
Business Development
Desktop Programming
Operating Systems
Video Editing
Miscellaneous
Newsletter
User Login
  • Username
  • Password
Stats
  • Tutorials: 27,031
  • Categories: 572

PHP Tutorials : 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.

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.
Delete HTML table rows without any database support  tutorial
    View Tutorial

Detailed Information

     Tutorial: Delete HTML table rows without any database support
     Date Listed: 2008-02-27
     Submitted By: bewebmaster
     Total Hits: 2454
     Rating Tutorial Rating 2.46Tutorial Rating 2.46Tutorial Rating 2.46Tutorial Rating 2.46Tutorial Rating 2.46 (87 votes)

    Discuss Tutorial
    Comment On Tutorial
    View Tutorial
    Report Broken Link

 







© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek