Rollover award description

Rollover award prizes trophies
This commit is contained in:
james 2007-11-23 21:25:52 +00:00
parent 7619a8fed5
commit 2305a44d57

View File

@ -157,11 +157,12 @@
echo mysql_error(); echo mysql_error();
while($r=mysql_fetch_object($q)) while($r=mysql_fetch_object($q))
{ {
mysql_query("INSERT INTO award_awards (award_sponsors_id,award_types_id,name,criteria,presenter,`order`,year,excludefromac,cwsfaward) VALUES ( mysql_query("INSERT INTO award_awards (award_sponsors_id,award_types_id,name,criteria,description,presenter,`order`,year,excludefromac,cwsfaward) VALUES (
'".mysql_escape_string($r->award_sponsors_id)."', '".mysql_escape_string($r->award_sponsors_id)."',
'".mysql_escape_string($r->award_types_id)."', '".mysql_escape_string($r->award_types_id)."',
'".mysql_escape_string($r->name)."', '".mysql_escape_string($r->name)."',
'".mysql_escape_string($r->criteria)."', '".mysql_escape_string($r->criteria)."',
'".mysql_escape_string($r->description)."',
'".mysql_escape_string($r->presenter)."', '".mysql_escape_string($r->presenter)."',
'".mysql_escape_string($r->order)."', '".mysql_escape_string($r->order)."',
'".mysql_escape_string($newfairyear)."', '".mysql_escape_string($newfairyear)."',
@ -196,7 +197,7 @@
echo mysql_error(); echo mysql_error();
while($r2=mysql_fetch_object($q2)) while($r2=mysql_fetch_object($q2))
{ {
mysql_query("INSERT INTO award_prizes (award_awards_id,cash,scholarship,`value`,prize,number,`order`,year,excludefromac) VALUES ( mysql_query("INSERT INTO award_prizes (award_awards_id,cash,scholarship,`value`,prize,number,`order`,year,excludefromac,trophystudentkeeper,trophystudentreturn,trophyschoolkeeper,trophyschoolreturn) VALUES (
'".mysql_escape_string($award_awards_id)."', '".mysql_escape_string($award_awards_id)."',
'".mysql_escape_string($r2->cash)."', '".mysql_escape_string($r2->cash)."',
'".mysql_escape_string($r2->scholarship)."', '".mysql_escape_string($r2->scholarship)."',
@ -205,7 +206,12 @@
'".mysql_escape_string($r2->number)."', '".mysql_escape_string($r2->number)."',
'".mysql_escape_string($r2->order)."', '".mysql_escape_string($r2->order)."',
'".mysql_escape_string($newfairyear)."', '".mysql_escape_string($newfairyear)."',
'".mysql_escape_string($r2->excludefromac)."')"); '".mysql_escape_string($r2->excludefromac)."',
'".mysql_escape_string($r2->trophystudentkeeper)."',
'".mysql_escape_string($r2->trophystudentreturn)."',
'".mysql_escape_string($r2->trophyschoolkeeper)."',
'".mysql_escape_string($r2->trophyschoolreturn)."'
)");
} }
} }