Page 1 of 1

Table Import

Posted: Tue Jan 17, 2023 6:10 pm
by hjones43
I have a clean .php page on which I placed a table and use import table property to populate the table from a .csv file. Using PHP I make changes to the .csv file. When I do that, the changes are just added to the end of the displayed table. Is there some way I clean out the table so the changed .csv file is the only thing appearing in the table?

Thanks, Harry Jones

Re: Table Import

Posted: Tue Jan 17, 2023 6:22 pm
by Pablo
There is no standard solution for this, because is very specific. So, this will require a custom script.

Re: Table Import

Posted: Wed Jan 18, 2023 2:25 am
by onlye
Which Table function or extension are you using? Have you tried using one of the table extensions that display a .csv file instead of importing it? then when you edit the .csv file the result is shown in the table.

I have a couple of projects I used these extensions to display a .csv file. I am using the CSV CRUD to edit the csv file.

Datatables - https://www.wysiwygwebbuilder.com/datatables.html

Responsive Tables - https://www.wysiwygwebbuilder.com/respo ... table.html

Bootstrap Tables - https://www.wysiwygwebbuilder.com/bootstraptable.html

Re: Table Import

Posted: Wed Jan 18, 2023 8:54 pm
by hjones43
Hello Onlye. Thanks for your response. I have a shopping cart which is built with text statements written to a blank page. It works, but is not very attractive. I was hoping to use tables to improve the appearance. I have the 3 extensions you mentioned. I think this is a problem I'll have to solve by continued experimentation. Greetings to MS from TX.

Best,
Harry

Re: Table Import

Posted: Thu Aug 24, 2023 11:46 pm
by onlye
hjones43 wrote: Wed Jan 18, 2023 8:54 pm Hello Onlye. Thanks for your response. I have a shopping cart which is built with text statements written to a blank page. It works, but is not very attractive. I was hoping to use tables to improve the appearance. I have the 3 extensions you mentioned. I think this is a problem I'll have to solve by continued experimentation. Greetings to MS from TX.

Best,
Harry
Harry,
Did you get your shopping cart to work?
What part of TX?

Re: Table Import

Posted: Fri Aug 25, 2023 3:41 am
by wwonderfull
hjones43 wrote: Tue Jan 17, 2023 6:10 pm I have a clean .php page on which I placed a table and use import table property to populate the table from a .csv file. Using PHP I make changes to the .csv file. When I do that, the changes are just added to the end of the displayed table. Is there some way I clean out the table so the changed .csv file is the only thing appearing in the table?

Thanks, Harry Jones
What you want is maybe fully possible. If you need advanced php solution you can contact us from our site if needed.