0) $errormessage[] = "slengpung 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 slengpung='".$slengpungflag."' where id=".$thisid; mysql_query($query); } else { $query ="INSERT INTO partylinks SET party=".$which.", year=".$when.", slengpung='".$slengpungflag."'"; mysql_query($query); } } ?>
slengpung id for event submited
see what you've done
errors found
 -
 -
event information
prod:   select the event you want
to add slengpung id for:
slengpung id:
use id 12 if there is no slengpung page for this event,
will make the +slengpung on party.php disapear