This commit is contained in:
james 2010-11-17 23:47:37 +00:00
parent 1b098f85b3
commit a8b0adce05

View File

@ -688,7 +688,7 @@ function user_save(&$u)
mysql_query("DELETE FROM judges_specialaward_sel WHERE users_id = {$u['id']}"); mysql_query("DELETE FROM judges_specialaward_sel WHERE users_id = {$u['id']}");
if(count($u['special_awards']) > 0){ if(count($u['special_awards']) > 0){
$query = "INSERT INTO judges_specialaward_sel (users_id, award_awards_id) VALUES (" . $u['id'] . ", "; $query = "INSERT INTO judges_specialaward_sel (users_id, award_awards_id) VALUES (" . $u['id'] . ", ";
$query .= implode('), (' . $u['id'] . ', ', $u['specal_awards']); $query .= implode('), (' . $u['id'] . ', ', $u['special_awards']);
$query .= ")"; $query .= ")";
mysql_query($query); mysql_query($query);
} }