Rollover the project categories-divisions links

This commit is contained in:
james 2007-12-07 22:12:16 +00:00
parent 17b10cc269
commit 9fe86bf408

View File

@ -115,6 +115,16 @@
'".mysql_escape_string($r->division_shortform)."', '".mysql_escape_string($r->division_shortform)."',
'".mysql_escape_string($newfairyear)."')"); '".mysql_escape_string($newfairyear)."')");
echo i18n("Rolling project category-division links")."<br />";
//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")."<br />"; echo i18n("Rolling project sub-divisions")."<br />";
//project subdivisions //project subdivisions
$q=mysql_query("SELECT * FROM projectsubdivisions WHERE year='$currentfairyear'"); $q=mysql_query("SELECT * FROM projectsubdivisions WHERE year='$currentfairyear'");