Hello,
I would like to use the 'Catagory' Field in my database to determine which image is used at the top of the page. I have tried using the loop below but I can not figure out how to get the 'Catagory' field information to the loop to be used in the condition statement.
if ($rec{'Catagory'} eq "Fuchi+Kashira"){
print qq|<img src="../images/caligraphy/large/fuchikashira.gif"><br>
<!-- #BeginEditable "body" -->
|;
}
if ($rec{'Catagory'} eq "Fuchi+Kashira"){
print qq|<img src="../images/caligraphy/large/fuchikashira.gif"><br>
<!-- #BeginEditable "body" -->
|;
}
if ($rec{'Catagory'} eq "Juyo+Hin" ){
print qq|<img src="../images/caligraphy/large/juyohin.gif"><br>
<!-- #BeginEditable "body" -->
|;
}
if ($rec{'Catagory'} eq "Katchu+Hin" ){
print qq|<img src="../images/caligraphy/large/katchuhin.gif"><br>
<!-- #BeginEditable "body" -->
|;
}
if ($rec{'Catagory'} eq "Katana+Kake" ){
print qq|<img src="../images/caligraphy/large/katanakake.gif"><br>
<!-- #BeginEditable "body" -->
|;
}
if ($rec{'Catagory'} eq "Kodogu" ){
print qq|<img src="../images/caligraphy/large/kodogu.gif"><br>
<!-- #BeginEditable "body" -->
|;
}
if ($rec{'Catagory'} eq "Kozuka" ){
print qq|<img src="../images/caligraphy/large/kozuka.gif"><br>
<!-- #BeginEditable "body" -->
|;
}
if ($rec{'Catagory'} eq "Shiki" ){
print qq|<img src="../images/caligraphy/large/shiki.gif"><br>
<!-- #BeginEditable "body" -->
|;
}
if ($rec{'Catagory'} eq "Tachi+Kake" ){
print qq|<img src="../images/caligraphy/large/tachikake.gif"><br>
<!-- #BeginEditable "body" -->
|;
}
if ($rec{'Catagory'} == Token ){
print qq|<img src="../images/caligraphy/large/token.gif"><br>
<!-- #BeginEditable "body" -->
|;
}
}
I am currently tring to get the relational mod working from the JPDeni site. I thought I would make the Catagory database the one side and have each record conatin the 'Catagory','Image'&'Foot' information. Then the many side would be the items and 'Catagory' would be the common field. I have the demo working but I can't get around the userid problem. The userid is the same for all items so I want the 'Catagory' field to determine which items are listed between the 'Image' & 'Foot' fields of the one database.
I hope this makes sense. I can clarify if you email.
Here is a link to the working dbman without alterations.
http://www.ikkyudo.com/dbarmor/db.cgi?db=default&uid=default&Key=&Catagory=Katchu+Hin&view_records=1
And the html file:
http://www.ikkyudo.com/text/html.txt
I have been searching through the thousands of threads and will contnue to look but would appreciate any help.
Thank you.
I would like to use the 'Catagory' Field in my database to determine which image is used at the top of the page. I have tried using the loop below but I can not figure out how to get the 'Catagory' field information to the loop to be used in the condition statement.
if ($rec{'Catagory'} eq "Fuchi+Kashira"){
print qq|<img src="../images/caligraphy/large/fuchikashira.gif"><br>
<!-- #BeginEditable "body" -->
|;
}
if ($rec{'Catagory'} eq "Fuchi+Kashira"){
print qq|<img src="../images/caligraphy/large/fuchikashira.gif"><br>
<!-- #BeginEditable "body" -->
|;
}
if ($rec{'Catagory'} eq "Juyo+Hin" ){
print qq|<img src="../images/caligraphy/large/juyohin.gif"><br>
<!-- #BeginEditable "body" -->
|;
}
if ($rec{'Catagory'} eq "Katchu+Hin" ){
print qq|<img src="../images/caligraphy/large/katchuhin.gif"><br>
<!-- #BeginEditable "body" -->
|;
}
if ($rec{'Catagory'} eq "Katana+Kake" ){
print qq|<img src="../images/caligraphy/large/katanakake.gif"><br>
<!-- #BeginEditable "body" -->
|;
}
if ($rec{'Catagory'} eq "Kodogu" ){
print qq|<img src="../images/caligraphy/large/kodogu.gif"><br>
<!-- #BeginEditable "body" -->
|;
}
if ($rec{'Catagory'} eq "Kozuka" ){
print qq|<img src="../images/caligraphy/large/kozuka.gif"><br>
<!-- #BeginEditable "body" -->
|;
}
if ($rec{'Catagory'} eq "Shiki" ){
print qq|<img src="../images/caligraphy/large/shiki.gif"><br>
<!-- #BeginEditable "body" -->
|;
}
if ($rec{'Catagory'} eq "Tachi+Kake" ){
print qq|<img src="../images/caligraphy/large/tachikake.gif"><br>
<!-- #BeginEditable "body" -->
|;
}
if ($rec{'Catagory'} == Token ){
print qq|<img src="../images/caligraphy/large/token.gif"><br>
<!-- #BeginEditable "body" -->
|;
}
}
I am currently tring to get the relational mod working from the JPDeni site. I thought I would make the Catagory database the one side and have each record conatin the 'Catagory','Image'&'Foot' information. Then the many side would be the items and 'Catagory' would be the common field. I have the demo working but I can't get around the userid problem. The userid is the same for all items so I want the 'Catagory' field to determine which items are listed between the 'Image' & 'Foot' fields of the one database.
I hope this makes sense. I can clarify if you email.
Here is a link to the working dbman without alterations.
http://www.ikkyudo.com/dbarmor/db.cgi?db=default&uid=default&Key=&Catagory=Katchu+Hin&view_records=1
And the html file:
http://www.ikkyudo.com/text/html.txt
I have been searching through the thousands of threads and will contnue to look but would appreciate any help.
Thank you.

