473,394 Members | 2,100 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to edit the specific rows in CSV file using PHP

I have a CSV file that viewed in web using CSV reader-codeigniter without using database. The user can add another data in using web and directly save into CSV file using this code

Expand|Select|Wrap|Line Numbers
  1. $file = fopen("./bin/pdw_table.csv","a");
  2.  
  3.         foreach ($list as $line)
  4.         {
  5.             fputcsv($file,explode(',',$line));
  6.         }
  7.  
  8.         fclose($file);
my problem now is how to edit and delete the existing data in CSV file. By the i'm using codeigniter here. I need your help. Thank you in advance for your answer :)
Mar 10 '14 #1
0 1632

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: ad | last post by:
I use DataGrid in my web application for editing data. But the DataGrid can edit one row at a time. How can I let the user edit multiple rows at a time?
2
by: David | last post by:
Hi, How can I edit all rows of a datagrid at the same time? I have a datagrid that has some bound columns and some template columns with a asp:textbox inside. (Textbox for values that can...
1
by: ad | last post by:
I use DataGrid in my web application for editing data. But the DataGrid can edit one row at a time. How can I let the user edit multiple rows at a time?
1
by: Jason | last post by:
Hello, I was wondering if there was a way to only edit certain rows in a ASP.Net. I know how to only edit certain columns. But say for example, I want to lock a field if a certain date has...
1
by: Ambica Jain | last post by:
I want to change the backcolor of some specific rows in the DataGrid. I have seen some samples that do it by overriding Paint method of inherited column class. However, I am using typed dataset...
4
by: moondaddy | last post by:
I need to edit the text in many files so I'm writing a small routine to do this. First I have a method that loops through all the files in a directory and passes the full file path to another...
0
by: mail | last post by:
Hi Is it possible to edit an asp file using filesystem? when I read a text file using filesystem it doesnt show me the asp code in the <% tags as this code is run server side, but is there a way...
2
by: adlakhadk | last post by:
I want to edit a PDB file (Protein Data Bank ) using C programming language and I am using a linux platform. I donot know much about the language but want to append some columns in another file...
1
by: dbanker | last post by:
Hey all, I am trying to use VB in an Access module to open a specific Excel file. Can anyone help me?
1
by: Xicon | last post by:
I am looking to create a program that is able to edit a text file that is not located within the program. This particular text file is always in the exact same location and is always named the exact...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.