CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
converts data to html table

 



rax
Deleted

Jan 9, 2001, 5:31 PM

Post #1 of 2 (518 views)
converts data to html table Can't Post

Hi I need a script that finds the data file in a folder and the information to a formatted HTML table with two layers (through a link in the table for more information). Please let me know if you know of anything out there that I could adapt or if you could put one together for me quickly. Thanks.



S_Shrum
User

Jan 17, 2001, 10:44 AM

Post #2 of 2 (499 views)
Re: converts data to html table [In reply to] Can't Post

I am new to Perl as well but have programmed in VB, ADA, C++, and now Perl (for about a month).

This works with flatfile data sources...nothing fancy.

I am in the process of writting a open-source generic flatfile -> html table (since I didn't want to pay for data source connectivity from my host service) that allows for data and table formatting, searching for a value in a specific field or ALL fields, sorting, etc. You can use it either with a template (it uses the GREP command to do search and replace) or as a SSI call from within a existing page (by omitting the &template parameter).

I set it up to automatically place wrappers around fields that are titled "URL" and "Email" so that they are active links within the table. If you require something else, you can change the code (as I have) to deal with other fields as well (like cgi calls to other databases based on the information in the field).

This at least requires that the first record in the datafile lists the field names, which is standard for flatfile databases I believe.

It still needs a little work plus I need to standardize some things but feel free to look it over. It works great on NT but I am fixing some UNIX issues. If you see something that can be improved on, let me know.

http://www.shrum.net/db_table.pl <-- as of Jan 9th

I should have it done within a week or 2 (school starts up next week) but if your in a rush, you can get the general idea from what I am doing.

Hope this helps. PerlGuru has been good to me so I share the wealth (of knowledge).

Sean Shrum
sean@shrum.net


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives