0) $errormessage[] = "csdb for this event already exists! (\/) O_o (\/)"; // if everything is ok if(!$errormessage) $submitok=true; } if($submitok){ $query = "SELECT id FROM partylinks WHERE party=".$which." and year=".$when; $result = mysql_query($query); $thisid = mysql_result($result,0); if($thisid) { $query ="UPDATE partylinks SET csdb='".$csdbflag."' where id=".$thisid; mysql_query($query); } else { $query ="INSERT INTO partylinks SET party=".$which.", year=".$when.", csdb='".$csdbflag."'"; mysql_query($query); } } ?>
csdb id for event submited
see what you've done
errors found
 -
 -
event information
prod:   select the event you want
to add csdb id for:
csdb id: