Thanx for the help, although it hasn't solved my problems. I've narrowed the problem down to that the variables don't contain anything. At least the $userid one don't. $userid is supposed to be a global variable, but I must've gotten it wrong somehow... This is the code:
$userid=@mysql_result($result,$rows,"id");
session_register('userid');
$senastinne=@mysql_result($result,$rows,"tidstampel");
session_register('senastinne');
mysql_query("UPDATE personer SET inloggad=1,session_id=\"".session_id()."\" WHERE id=$userid");
Any ideas?
Thanx in advance,
Erik