Anyone who can free my mind from struggling to work this out will be adored forever.
I have two variables $first_shown & $last_shown. Each being years, so in example A: first shown maybe 1973, last shown will be 1981, for example.
I want to allow users to do a search displaying for all records shown in their given year. How could i make it so, if they type 1977, example A will show up.
I was thinking this would be straight forward when i planned it!! I'm thinking you would need to develop some variable through subtraction..
something like..
$years = $last_shown - $first_shown
that would give you $years a figure like 8, for example a. then you would need to add one to $first_shown for every interger in $years , thus providing 1973,1974,1975 and so on..
How could i do this, I'm guessing I'll have to develop some sort of loop?
any help will be appreciated, thanks in advance.