DJ_B
12-23-2000, 10:34 PM
Howdy gang! In this script that I am messing with it asks you to define some things that you would like to be displayed everytime a record is displayed (it is a DB script). So i did this and it looks like the following:
# <-- Start of short display formatting -- >
print qq|
<table width="98%" border="0" cellspacing="0" cellpadding="1">
<td width="30%"><font face="arial,helvetica" size="2"><a href="$long_url">$rec{'Name'**</font></td>
<td width="25%"><font face="arial,helvetica" size="2">$rec{'License'**</font></td>
<td width="25%"><font face="arial,helvetica" size="2">$rec{'Date Added'**</font></td>
<td width="20%"><font face="arial,helvetica" size="2">$rec{'Download Size'**</font></td>
</tr>
</table>
|;
All great and dandy! But....I want a simple HTML link to be displayed only ONCE at the top of all of my pages. If I put the HTML for the link iin the code above it will display fine, except one link will be shown for every record. So for example, if I have 100 records, 100 HTML links will be shown. But I only want ONE html link at the top of my pages!!
Is there some PERL code that will tell the program to print the HTML link ONCE and only ONCE?
Thanks, and if you are confused, tell me, and I will try to explain some more http://geekvillage.com/ubb/smile.gif
Thanks!
# <-- Start of short display formatting -- >
print qq|
<table width="98%" border="0" cellspacing="0" cellpadding="1">
<td width="30%"><font face="arial,helvetica" size="2"><a href="$long_url">$rec{'Name'**</font></td>
<td width="25%"><font face="arial,helvetica" size="2">$rec{'License'**</font></td>
<td width="25%"><font face="arial,helvetica" size="2">$rec{'Date Added'**</font></td>
<td width="20%"><font face="arial,helvetica" size="2">$rec{'Download Size'**</font></td>
</tr>
</table>
|;
All great and dandy! But....I want a simple HTML link to be displayed only ONCE at the top of all of my pages. If I put the HTML for the link iin the code above it will display fine, except one link will be shown for every record. So for example, if I have 100 records, 100 HTML links will be shown. But I only want ONE html link at the top of my pages!!
Is there some PERL code that will tell the program to print the HTML link ONCE and only ONCE?
Thanks, and if you are confused, tell me, and I will try to explain some more http://geekvillage.com/ubb/smile.gif
Thanks!