this is my code:
sub html_record {
# --------------------------------------------------------
# How a record will be displayed. This is used primarily in
# returning search results and how it is formatted. The record to
# be displayed will be in the %rec hash.
my (%rec) = @_; # Load any defaults to put in the VALUE field.
($db_auto_generate and print &build_html_record(%rec) and return);
print qq|
<table width="500" cellpadding="3" cellspacing="1" border="2" bgcolor="#ffffcc">
<tr>
<td><a href="$db_script_link_url&ww=on&$db_key=$rec{$db_key}&view_records=1">$rec{'ID'}</a></td>
<td>$rec{'grade'}</td>
<td>$rec{'year'}</td>
<td>$rec{'color'}</td>
<td>$rec{'price'}</td>
<td>$rec{'area'}</td>
</tr>
</table>
|;
}
I borrowed this from GeorgeJetson but since I fiddled with it something is going wrong ... I only get 1 view even if there are several possibilities .... any clues?
Thanks folks
sub html_record {
# --------------------------------------------------------
# How a record will be displayed. This is used primarily in
# returning search results and how it is formatted. The record to
# be displayed will be in the %rec hash.
my (%rec) = @_; # Load any defaults to put in the VALUE field.
($db_auto_generate and print &build_html_record(%rec) and return);
print qq|
<table width="500" cellpadding="3" cellspacing="1" border="2" bgcolor="#ffffcc">
<tr>
<td><a href="$db_script_link_url&ww=on&$db_key=$rec{$db_key}&view_records=1">$rec{'ID'}</a></td>
<td>$rec{'grade'}</td>
<td>$rec{'year'}</td>
<td>$rec{'color'}</td>
<td>$rec{'price'}</td>
<td>$rec{'area'}</td>
</tr>
</table>
|;
}
I borrowed this from GeorgeJetson but since I fiddled with it something is going wrong ... I only get 1 view even if there are several possibilities .... any clues?
Thanks folks