Hi, I have a flat file database which i want to edit but not sure how. The flat file database is set-up like so: ID|Name|Age|Country|height|size|sex|hobbies|language|img|directory|specialities|description|featured|other| Code (markup): I want to pass a get value of either yes or no to the page with the id number. The only field i want to edit in the database is the featured field with the value of the get statement of yes or no. Can anyone please help. Cheers, Adam
I have no more idea but I searched something which can help you. http://php.bigresource.com/Edit-flat-file-database-7QWYDbHr.html
So Adam are you wanting to change all the yes's to no ? It would make sense to do that and then just add back featured profiles ? If so it might be just as easy to use a notepad or your favourite file editing program and use the find and replace function. If I'm way off the mark, please explain a little more about your requirements.
Sorry i may not have explained myself correctly. Basically i have a page which has a list of entries. Next to each entry there is Yes | No when pressed they go to a page with a get statement that contains the id number of the entry and either yes or no depending on which link they have pressed. When on the next page i want it to update the relevant entry matching with the ID number sent across which the either yes or no. The yes or no will replace the filed featured currently in the database. I forgot to mention before that the database is in the format .db