require("include/top.php");
if (($SESSION_LEVEL=='administrator' || $SESSION_LEVEL=='moderator' || $SESSION_LEVEL=='gloperator')):
unset($submitok);
// check the submitted data
if($prod && $party)
{
if($party==1024) {
$errormessage[] = "you cant choose __no_party__ for prod other party association";
}
if(!$errormessage)
$submitok=true;
}
// insert the submitted prod
if($submitok){
$query = "INSERT INTO prodotherparty SET ";
if($party) {
$query.= "party=".$party.", ";
}
if($pyear) {
$party_year=intval($pyear);
$query.= "party_year=".$party_year.", ";
}
if($prank) {
$query.= "party_place=".$prank.", ";
}
if($compo) {
$query.= "partycompo=\"".$compo."\", ";
}
$query.= "prod=".$prod;
mysql_query($query);
}
$result = mysql_query("DESC prods partycompo");
$row = mysql_fetch_row($result);
$compos = explode("'",$row[1]);
$result = mysql_query("SELECT * FROM parties ORDER BY name");
while($tmp=mysql_fetch_array($result)){
$parties[]=$tmp;
}
?>
the lobster says "NO ENTRANCE!"
you need god priveligies to access this place.
else: ?>