Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Treating .csv Files As Database Data, Showing .CSV data on a web page
mrdee
post Feb 2 2008, 12:55 PM
Post #1


Super Member
*********

Group: [HOSTED]
Posts: 258
Joined: 18-July 07
From: Slough (UK)
Member No.: 46,682



I use a nice program (which I helped to beta test) called 'Simfatic Forms' to generate forms on web pages.
The only problem is that it does not (yet) support MySQL databases, it saves the form data as a .CSV file.

Now I was wondering if you can do the same with a .CSV file as you do with a MySQL databse, ie. displaying the data in that file on a web page which adjusts automatically as data are added to the file.

To clarify: eg. if I make a form to sign a petition online, the data are saved to a .CSV file every time someone fills in the form, is it now possible, using HTML or PHP, to put the people who signed the petition on a web page, without me having to update the page manually every time someone signs the petition?

Would it also be possible to only display some of the data instead of all of them? Eg. when people sign the petition they will be asked for their name, City and email address, but for protection of their privacy I would only display their name and city on the result page.

Is there a way to achieve all of the above and, if so, how should it be done?

Thanks in advance for any help.
Go to the top of the page
 
+Quote Post
jlhaslip
post Feb 2 2008, 04:51 PM
Post #2


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 3,874
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



When I was starting out learning php, I wrote a Contact Form that displayed the messages onto the Web page below the Form.
It used a csv file to do that.
Example: http://www.jlhaslip.trap17.com/contact_form/contact.php

Let me know if you would like to see the zip file for it.
Go to the top of the page
 
+Quote Post
mrdee
post Feb 2 2008, 05:24 PM
Post #3


Super Member
*********

Group: [HOSTED]
Posts: 258
Joined: 18-July 07
From: Slough (UK)
Member No.: 46,682



QUOTE(jlhaslip @ Feb 2 2008, 04:51 PM) *
Let me know if you would like to see the zip file for it.

Yes, Jim.
That would definitely be helpful.
Thanks.

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Another Good Place To Host Files(0)
  2. Website Building- E-mail Forwarding & Downloads(9)
  3. Webpage Design- Autodownloading Hosted Files(1)
  4. Free Dhtml Menu That Reads A Database(7)
  5. Import From Excel File Into Mysql Database(7)
  6. How Do You Combine Multiple Mysql Databases Into One Database?(3)
  7. Host Files On Other Site(3)
  8. Help Or Advise Needed For Access Database Webpage Conversions(0)
  9. Merging Database Php Mysql(5)
  10. Help With Database(24)
  11. Where Am I Going Wrong This Time?(4)
  12. Which Data Type To Use In Mysql Table(4)
  13. Another Question On Mysql Table Data Type(1)
  14. Accessing Mysql From Javascript(4)
  15. Index In A Mysql Database(3)
  1. Mysql(2)


 



- Lo-Fi Version Time is now: 24th July 2008 - 12:54 PM