forked from science-ation/science-ation
Rollover the project categories-divisions links
This commit is contained in:
parent
17b10cc269
commit
9fe86bf408
@ -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'");
|
||||||
|
Loading…
Reference in New Issue
Block a user