I am having trouble coding this cgi file, I have written up a full explanation on my webpage, if you would please have a look, I put up the sample data and what the table I am trying to get should look like. I will also include the html to my page but the you can't see the tables without going to my page, the site is:
http://www.geocities.com/skyodyssey/
<html>
<head>
</head>
<body>
Say I have this data:
<br>
I have more explanation at bottom of page
<br><br>
ACM Computing Surveys, InfoTrac, ExpAcd, Dec-96<br>
ACM Computing Surveys, PDQ, ABIGlobal, Mar-96<br>
ACM Computing Surveys, PDQ,PAbsII, Mar-96<br>
ACM Transactions on Computer Systems, InfoTrac, ExpAcd,Nov-96<br>
Communications of the ACM, InfoTrac, ExpAcd, Jan-89<br>
Communications of the ACM, InfoTrac, GBus, Jan-88<br>
Communications of the ACM, PDQ, ABIGlobal, Jan-92<br>
Communications of the ACM, PDQ, PAbsII, Jan-92<br>
<br>
</center><p><br><center><table BORDER CELLSPACING=0 CELLPADDING=0 WIDT
+H="100%" >
<tr><td ALIGN=CENTER BGCOLOR="#C0C0C0">Journal</center></td><td ALIGN=
+CENTER BGCOLOR="#C0C0C0">Resource</td><td ALIGN=CENTER BGCOLOR="#C0C0
+C0">Database</td><td ALIGN=CENTER BGCOLOR="#C0C0C0">Date</td></tr>
<tr>
<td rowspan=3 VALIGN=TOP>ACM Computing Surveys</td>
<td rowspan=1>InfoTrac</td>
<td>ExpAcd</td>
<td>Dec-96</td>
</tr>
<tr>
<td rowspan=2 >PQD</td>
<td>ABIGlobal</td>
<td rowspan=2 >Mar-96</td>
</tr>
<tr>
<td>PAbsII</td>
</tr>
<tr>
<td rowspan=1 VALIGN=TOP>ACM Transactions on Computer Systems</td>
<td rowspan=1 >InfoTrac</td>
<td>ExpAcd</td>
<td>Nov-96</td>
</tr>
<tr>
<td rowspan=4 VALIGN=TOP>Communications of the ACM</td>
<td rowspan=2 >InfoTrac</td>
<td>ExpAcd</td>
<td>Jan-89</td>
</tr>
<tr>
<td>GBus</td>
<td>Jan-88</td>
</tr>
<tr>
<td rowspan=2 >PQD</td>
<td>ABIGlobal</td>
<td rowspan=2 >Jan-92</td>
</tr>
<tr>
<td>PAbsII</td>
</tr>
</table></center>
<br>
This is only a small portion of a large .csv file I will create. What
+ I be doing is
searching the database I read in for a pattern given by the user
then i will put into an array all the lines that matched, then I will
+sort them and
make a new array with all of the values split at the comma. what i wa
+nt to do is
is create a table like above, but note what I do when there are duplic
+ate fields, I'm
first looking at the first field, then I combine multiple fields withi
+n that first field.
It's easier to look at the table to see what i am trying to do. I har
+d coded this
table for the above sample data. Remember that I will not have a fixe
+d amount of data. I am
using a html page to send the keyword to my cgi, I have to use "use CG
+I" to be able to
get the parameters, problem is, I can't ever get "use HTML::Table" to
+work, just includeing
it make it crash, when i type perl -v i get version 5.005_03 built for
+ sun4-solaris, also
i have to include this in my program <br>
#!/usr/bin/perl -wT<br>
print "Content-type:text/html\n\n";<br>
<br>
I hope this is enough info, I have been at this for days, and I can't
+figure it out<br>
Thanks for looking, any and all help will be appreciated!!!!!!!!!!!!!!
+!!!!!!!!!!!!!
</body>
</html>
I have spent days at this, any help would be appreciated!!!!
http://www.geocities.com/skyodyssey/
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.