Jump to content

Two doubts in Flat File Database


karthikeyan_coder

Recommended Posts

i am working in a flat file based database.

file: items.txt

1. I need to update some records.
Row format is
[code]$url."||".$name."||".$desc."||".$category."||N"."\n"[/code]

i need to update the record based on the key $url and $category
the last value "N" will be updated as "Y" where $url = $_GET['url'] AND $category = $_GET['category'];

2. I have to delete all the records which is having same $category value.

any help?


Link to comment
https://forums.phpfreaks.com/topic/26321-two-doubts-in-flat-file-database/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.