OK
Here's an update to make things clearer.
I've managed to do some coding for what I need but I'm stuck at the crucial part
@table_fields = "field1","field2","field3","field4");
foreach $table_fields (@table_fields)
{print"<th bgcolor=#7777CC><font color=#000000><font s
+ize=\"-1\">$table_fields</th>\n";}
print"</tr>\n";
open (DATABASE, "$database");
while ($inLine = <DATABASE>)
{ $line=$inLine;
{ @fields = split(/\|/,$line);
{print"<td bgcolor=$bgclr><font size=\"-2\">$fields[6]
+</td>\n";}
{print"<td bgcolor=$bgclr><font size=\"-2\">$fields[8]
+</td>\n";}
{print"<td bgcolor=$bgclr><font size=\"-2\">$fields[0]
+<a href=http://domain.com/cgi-bin/query_call.cgi?$fields[0]><img src=
+../images/red.gif></td>\n";}
The rest is irrelevant as what I need to know is the correct format to make the text of
$fields[0] in the last line THE submission instead of red.gif and preferably without an image.
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.