תבנית:שליפת טבלת משחקים שאלתא: הבדלים בין גרסאות בדף

מתוך ויקיפועל
קפיצה לניווט קפיצה לחיפוש
אין תקציר עריכה
אין תקציר עריכה
שורה 21: שורה 21:
{{#ifexpr:{{#len:{{{ליום}}}}} > 0| AND (year<'{{{לשנה}}}' OR (year='{{{לשנה}}}' AND month<'{{{לחודש}}}') OR  (year='{{{לשנה}}}' AND month='{{{לחודש}}}'  AND day<='{{{ליום}}}'))|}}  
{{#ifexpr:{{#len:{{{ליום}}}}} > 0| AND (year<'{{{לשנה}}}' OR (year='{{{לשנה}}}' AND month<'{{{לחודש}}}') OR  (year='{{{לשנה}}}' AND month='{{{לחודש}}}'  AND day<='{{{ליום}}}'))|}}  
{{#ifeq:{{{מפעל}}}|(הכל)||{{#ifeq:{{{מפעל}}}|ליגה| AND liga='1' | AND mifal='{{{מפעל}}}'  }} }}
{{#ifeq:{{{מפעל}}}|(הכל)||{{#ifeq:{{{מפעל}}}|ליגה| AND liga='1' | AND mifal='{{{מפעל}}}'  }} }}
order by=year,month,day DESC
}}
}}
{{#cargo_query:
{{#cargo_query:

גרסה מ־20:22, 4 באוגוסט 2022

תאריך מפעל מפגשים נצחונות תיקו הפסדים הפרש
Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '=year,month,day DESC ORDER BY `year`,`month`,`day` DESC LIMIT 100' at line 9

Function: CargoSQLQuery::run Query: SELECT `cargo__Games`.`_pageID` AS `cargo_backlink_page_id_Games`,concat('<div class=\,`cargo__Games`.`result`,'cell\'>',`cargo__Games`.`year`,'-',`cargo__Games`.`month`,'-',`cargo__Games`.`day`,'</div>') AS `תאריך`,concat('<div class=\,`cargo__Games`.`result`,'cell\'>','',`cargo__Games`.`ona`,'','</div>') AS `עונה`,concat('<div class=\,`cargo__Games`.`result`,'cell\'>','',`cargo__Games`.`mifal`,'','</div>') AS `מפעל`,concat('<div class=\,`cargo__Games`.`result`,'cell\'>',`cargo__Games`.`stage`,'</div>') AS `שלב`,concat('<div class=\,`cargo__Games`.`result`,'cell\'>','',`cargo__Games`.`host`,'','</div>') AS `מארחת`,concat('<div class=\,`cargo__Games`.`result`,'cell\'>','',`cargo__Games`.`oponent`,'','</div>') AS `אורחת`,IF(`cargo__Games`.`liga` = '1',concat('<div class=\,`cargo__Games`.`result`,'cell\'>','',`cargo__Games`.`awayscore`,':',`cargo__Games`.`homescore`,'','</div>'),concat('<div class=\,`cargo__Games`.`result`,'cell\'>','',`cargo__Games`.`awayscore`,':',`cargo__Games`.`homescore`,'','</div>')) AS `תוצאה` FROM `cargo__Games` WHERE liga IS NOT NULL AND department='{{{מחלקה}}}' AND result='{{{תוצאה}}}' AND homegame='{{{ביתיות}}}' AND (`cargo__Games`.`host`= OR `cargo__Games`.`oponent`=) AND (year>'{{{משנה}}}' OR (year='{{{משנה}}}' AND month>'{{{מחודש}}}') OR (year='{{{משנה}}}' AND month='{{{מחודש}}}' AND day>='{{{מיום}}}')) AND (year<'{{{לשנה}}}' OR (year='{{{לשנה}}}' AND month<'{{{לחודש}}}') OR (year='{{{לשנה}}}' AND month='{{{לחודש}}}' AND day<='{{{ליום}}}')) AND mifal='{{{מפעל}}}' order by=year,month,day DESC ORDER BY `year`,`month`,`day` DESC LIMIT 100