ok, i have disabled access to the edit details screen while
i work on this.
i have probably fixed the problem where edits to details
would not be saved. this was our old friend, transparent
references to items in the POST array that had to be made
explicit.
the challenge is the damn year drop-down. i am going to
put my notes on this here so i don't forget.
the year of the playlist i am editing details for is 1986.
$date[year] is being set to 1986 successfully.
it's like a word problem. "if the train left the station
in 1986 and travelled for -17 years, what year was it when
Einstien boarded the train in Irktusk?" geah.
the writeYearOptions2 function is called by the dbsearch.php
page which i think uses it successfully, so that makes me
not want to touch it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: NO
ok, i have disabled access to the edit details screen while
i work on this.
i have probably fixed the problem where edits to details
would not be saved. this was our old friend, transparent
references to items in the POST array that had to be made
explicit.
the challenge is the damn year drop-down. i am going to
put my notes on this here so i don't forget.
the year of the playlist i am editing details for is 1986.
$date[year] is being set to 1986 successfully.
writeYearOptions2($date[year], $date[year]+1, $date[year]-2005);
$defyear = 1986
$yearsback = -17
$yearsfor = 1
function writeYearOptions2($defyear, $yearsback, $yearsfor) {
for ( $year = $defyear - $yearsback; $year <= $defyear +
$yearsfor; $year++) {
print "\t\t<option ";
print (($year == $defyear) ? "SELECTED" : "");
print ">$year\n";
}
}
what we get
-1 through 1967
what we want
1985? through 2005 (Current year)
it's like a word problem. "if the train left the station
in 1986 and travelled for -17 years, what year was it when
Einstien boarded the train in Irktusk?" geah.
the writeYearOptions2 function is called by the dbsearch.php
page which i think uses it successfully, so that makes me
not want to touch it.