Code:
$result = mysql_query($sql) or die("Query failed.");
if(mysql_num_rows($result) ==0) { ?>
<div id="error"><div class="msg" id="sucmsgid"> <?
echo "No user found with this ID!"; ?>
</div></div>
There is no closing brace for the red opening brace. I suspect you want the closing brace after the two closing </div>
Dave
Edit: Oh wait, I see it there after the mysql_close. Which is line 41?