diff --git a/config/rollover.php b/config/rollover.php index 0c4cd65..8ca24cb 100644 --- a/config/rollover.php +++ b/config/rollover.php @@ -115,6 +115,16 @@ '".mysql_escape_string($r->division_shortform)."', '".mysql_escape_string($newfairyear)."')"); + echo i18n("Rolling project category-division links")."
"; + //project categories divisions links + $q=mysql_query("SELECT * FROM projectcategoriesdivisions_link WHERE year='$currentfairyear'"); + echo mysql_error(); + while($r=mysql_fetch_object($q)) + mysql_query("INSERT INTO projectcategoriesdivisions_link (projectdivisions_id,projectcategories_id,year) VALUES ( + '".mysql_escape_string($r->projectdivisions_id)."', + '".mysql_escape_string($r->projectcategories_id)."', + '".mysql_escape_string($newfairyear)."')"); + echo i18n("Rolling project sub-divisions")."
"; //project subdivisions $q=mysql_query("SELECT * FROM projectsubdivisions WHERE year='$currentfairyear'");