if(mysql_num_rows($res) != 0) { session_start(); session_register("uid","pwd"); $session=session_id(); $show_content=true; } else { $show_content=false; }
if ($show_content==false) { мой код } else { мой код }