For speed-kini.de we have two types of tables:
- Tables which show the current rankings overall, women, juniors, foil..
- Tables which show rankings of previous years (archive) for overall, women, juniors, foil…
The initial approach was having two different wpDataTables: one for the current year and one with the year as variable. This duplication should ring all your software engineer alarm bells!
Another possibility would have been to use the archive tables for the current rankings by just setting the variable to 2021, 2022 etc… this would mean work every year to edit the wordpress pages and manually increase the variable to the current year. So this is a bit nicer but still means regular maintenance work.
After some thought, I ended up with a neat approach how to use one table for both: current and archive.
For the current year you just leave the variable empty and for archive you specify the variable to your desired year.
The mechanism to default to the current year in case no year is specified consists of two parts:
#1 Setting the default value of %VAR1% to a very high number (> 5000 should be enough 😉 )

#2 Small SQL modifications to the places which use %VAR1%
[...]
WHEREYEAR(date) = LEAST(year(curdate()), %VAR1%)
[...]
30,919 comments
тканевые электрожалюзи http://prokarniz23.ru .
жалюзи с электроприводом жалюзи с электроприводом .
future gallery corner – Items loaded quickly and the layout was neat and tidy.
future gallery store – Items are clearly displayed and navigating sections felt natural.
пластиковые жалюзи с электроприводом http://www.prokarniz23.ru .
Смотреть здесь Mega онион
This contained some excellent tips and tools. Great blog publication.
This was incredibly helpful — thank you!
Hey there! I could have sworn I’ve been to this blog before but after browsing through some of the post
I realized it’s new to me. Nonetheless, I’m definitely happy I found it and I’ll be book-marking and checking back
frequently!
алюминиевые электрожалюзи http://www.prokarniz23.ru .
I appreciate the positive energy you bring to your posts.
shop grove collection – Fast pages and clean design enhanced the browsing experience.
автоматические жалюзи автоматические жалюзи .
автоматические жалюзи автоматические жалюзи .
такой Мега сайт
жалюзи с электроприводом купить жалюзи с электроприводом купить .
shop future grove – Items are clearly presented and navigating the site felt effortless.
автоматические жалюзи автоматические жалюзи .
Hi, i feel that i saw you visited my weblog thus i came to return the prefer?.I am attempting
to to find things to enhance my site!I suppose its good enough to make use of some of
your ideas!!
If you don’t mind, where do you host your weblog? I am looking for a very good web host and your webpage seams to be extremely fast and up most the time…
алюминиевые электрожалюзи https://www.prokarniz23.ru .
жалюзи с электроприводом купить жалюзи с электроприводом купить .
узнать больше Мега ссылка
Dude.. I am not much into reading, but somehow I got to read lots of articles on your blog. Its amazing how interesting it is for me to visit you very often. –
Crest Studio – Navigation through the site was smooth and user-friendly.
UrbanCrest Online – I appreciated how organized and accessible the items were.
Just wanna admit that this is extremely helpful, Thanks for taking your time to write this.
Sun Wind Hub – Clear product arrangement and simple navigation made browsing enjoyable.
Sun Wind Treasures – User-friendly design with organized sections improved the shopping flow.
UrbanCrest Hub – Items were easy to find and the interface was very smooth.
Sun Wind Lane – Logical product grouping and tidy pages made shopping simple.
гидроизоляция цена гидроизоляция цена .
Brightwood Picks – Easy to browse products and clear design — enjoyable shopping session.
гидроизоляция подвала изнутри цена м2 http://gidroizolyacziya-czena1.ru/ .
услуги гидроизоляции подвала http://gidroizolyacziya-podvala-iznutri-czena.ru/ .
гидроизоляция подвала цена гидроизоляция подвала цена .
Brightwood Store – Everything is displayed clearly and the site is intuitive — shopping made simple.
инъекционная гидроизоляция своими руками инъекционная гидроизоляция своими руками .
инъекционная гидроизоляция холодных швов http://www.inekczionnaya-gidroizolyacziya1.ru .
усиление проема углеволокном усиление проема углеволокном .
усиление проёмов под панорамные окна usilenie-proemov2.ru .
Crest Boutique Online – Product categories were easy to follow and intuitive.
ремонт бетонных конструкций гидроизоляция http://www.remont-betonnykh-konstrukczij-usilenie.ru .
Wind & Sun Emporium – Smooth browsing experience and organized items enhanced convenience.
гидроизоляция подвала стоимость гидроизоляция подвала стоимость .
seo продвижение сайтов агентство http://www.reiting-seo-kompanii.ru .
Stumbled across yola247. Seems to have a good selection of stuff. Will keep exploring and see what I find. Worth a browse, maybe!
аренда техники экскаватор погрузчик аренда техники экскаватор погрузчик .
аренда экскаватора погрузчика цена аренда экскаватора погрузчика цена .
BrightWood Deals – Products are displayed nicely and browsing is smooth — very enjoyable shopping.