Hi:
A couple people have been very nice helping me try and do this mod... thanks. Well, I figured out what I was doing wrong, and I hope you will help me get it right!
When I explained my previous mod, I said I added the field to the database... but what I want to do is get the second field OUT of the database for size's sake>
So, I have a field in the DB called "EditionSize" I would like to modify that so that if EditionSize is not null, a new variable is created by adding the text "Edition Size of $EditionSize"- $edmod- and eventually passed to the template. But $edmod is NOT saved to the database...
So, is this POSSIBLE, and if so, what extra step do I need to do?
Here is the code as it sits now:
in site_html_link
($rec{'EditionSize'} !="") ? ($edmod = "Edition of $rec{'EditionSize'}") : (undef $edmod);
in globals:
edmod => $edmod
and finally, in links.html
<%edmod%>
So, what am I misiing to pass this variable?
Thanks!
Dave
PS, I just bought Perl for Dumbies, and I am reading it!
A couple people have been very nice helping me try and do this mod... thanks. Well, I figured out what I was doing wrong, and I hope you will help me get it right!
When I explained my previous mod, I said I added the field to the database... but what I want to do is get the second field OUT of the database for size's sake>
So, I have a field in the DB called "EditionSize" I would like to modify that so that if EditionSize is not null, a new variable is created by adding the text "Edition Size of $EditionSize"- $edmod- and eventually passed to the template. But $edmod is NOT saved to the database...
So, is this POSSIBLE, and if so, what extra step do I need to do?
Here is the code as it sits now:
in site_html_link
($rec{'EditionSize'} !="") ? ($edmod = "Edition of $rec{'EditionSize'}") : (undef $edmod);
in globals:
edmod => $edmod
and finally, in links.html
<%edmod%>
So, what am I misiing to pass this variable?
Thanks!
Dave
PS, I just bought Perl for Dumbies, and I am reading it!