Hi, why can I not make this here:

$result = mysql_query("INSERT INTO ticket_e SET " .
"vorf_te='$vorv_te', " .

$result2 = mysql_query ("UPDATE event SET " .
"loc_id='$lastid', " .
"WHERE ev_id=$ev_id");

event and loc have a n/1 relation. I will let the user input the dates step by step. First of all the event, next the loc. So I get the event_id in the first step with mysql_insert_id();
go to step 2 and that is what you see above.
But anyway he isn't interested in the second part in any way, I can change what I want.