I am having a problem... I built a small subroutine for LINKS:
### CHECK Edition Size DAVE MOD
if ($values[$db_editionsize] > "0") {
$edmod = "Edition of $values[$db_editionsize].";
}
else {
$edmod = "";
}
I have added sucessfully a field called EditionSize to the links DB, and it has a number in it. I want it to output, in the case of an entry of 5000... "Edition of 5000", and I want this variable labeled $edmod (for edition modified). Obviously, if it is NOT an edition, I do not want anything written, so I put in the second line $edmod= "";
The above code is in nphbuild.cgi under "sub build_update_newpop"
Then, in site_html_templetes under globals, I have "edmod => $edmod,"
It does NOT pass the variable to my templete.... what am I doing wrong???
Sorry I am so lame, I do appreciate your help!
[This message has been edited by carfac (edited October 18, 1999).]
### CHECK Edition Size DAVE MOD
if ($values[$db_editionsize] > "0") {
$edmod = "Edition of $values[$db_editionsize].";
}
else {
$edmod = "";
}
I have added sucessfully a field called EditionSize to the links DB, and it has a number in it. I want it to output, in the case of an entry of 5000... "Edition of 5000", and I want this variable labeled $edmod (for edition modified). Obviously, if it is NOT an edition, I do not want anything written, so I put in the second line $edmod= "";
The above code is in nphbuild.cgi under "sub build_update_newpop"
Then, in site_html_templetes under globals, I have "edmod => $edmod,"
It does NOT pass the variable to my templete.... what am I doing wrong???
Sorry I am so lame, I do appreciate your help!
[This message has been edited by carfac (edited October 18, 1999).]