Home : Products : DBMan : Customization :

Products: DBMan: Customization: Re: [GCSHC] Search by Clicking on A Link: Edit Log

Here is the list of edits for this post
Re: [GCSHC] Search by Clicking on A Link
Try using this:

<$font_color2> |;

if ($rec{'Gender'} eq 'Stallion') {
print qq|<A HREF="db.cgi?db=default&uid=$db_uid&Sire=$rec{'GCID'}&view_records=View+Records">Progeny</a>|;
}
elsif ($rec{'Gender'} eq 'Gelding') {
print qq|<A HREF="db.cgi?db=default&uid=$db_uid&Sire=$rec{'GCID'}&view_records=View+Records">Progeny</a>|;
}
elsif ($rec{'Gender'} eq 'Mare') {
print qq|<A HREF="db.cgi?db=default&uid=$db_uid&Dam=$rec{'GCID'}&view_records=View+Records">Progeny</a>|;
}
elsif ($rec{'Gender'} eq 'Spayed Mare') {
print qq|<A HREF="db.cgi?db=default&uid=$db_uid&Dam=$rec{'GCID'}&view_records=View+Records">Progeny</a>|;
}
print qq|</font><BR>


No need to use the full url if you're within the same directory and it will speed up the links. Also I would recommend you turn off bolding in your .cfg file.

$db_bold = 0;

That will prevent what is happening with your Farrier link not finding records.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/

Last edited by:

LoisC: May 31, 2004, 11:04 AM

Edit Log: