Здравствуйте ! Помогите пожалста чайнику. Делаю на сайте соц. сеть для рыболовов и наткнулся на такую проблему. Страница просмотра профиля участников открывается только один раз. Для того, чтобы просмотреть второй раз, или следующего участника, нужно выйти из сайта и снова войти. Иначе покажет... ( Not Found The requested URL /my_org//vasil was not found on this server. ) Вот код страницы, может кто подскажет в чем дело, что нужно изменить в коде, или в базе данных ? А здесь наглядный пример (испытательный) http://www.rybalka24.de/my_org//index.php <?php ////////////////////////////////////////////////////////////////////////// // my_profile.php // ////////////////////////////////////////////////////////////////////////// include("include/site_settings.php"); include("include/site_replace.php"); /////////////////////////////////////// // Get Profile Information // /////////////////////////////////////// $profile_info = getSqlRow("SELECT * FROM ifdate_users WHERE username='".$_GET['username']."'"); /////////////////////////////////////// // Include Header // /////////////////////////////////////// include("themes/".$site_settings['ifdate_theme']."/ifdate_header.php"); /////////////////////////////////////// // Check if Profile Exists // /////////////////////////////////////// $check_user_exists = mysql_query("SELECT * FROM ifdate_users WHERE username='".$_GET['username']."'"); if (mysql_num_rows($check_user_exists)==0){ $error_number = rand(9,89987528); echo "<script>document.location.href='my_profile_error.php?error=".$error_number."&&error_name=".$_GET['username']."'</script>"; } /////////////////////////////////////// // Update Profile Views // /////////////////////////////////////// mysql_query("UPDATE ifdate_users SET profile_views=profile_views+1 WHERE username='".$profile_info['username']."'"); /////////////////////////////////////// // Get Profile Users Age // /////////////////////////////////////// $get_profile_row = getSqlRow("SELECT * FROM ifdate_users WHERE username='".$_GET['username']."'"); $get_birth_day = $get_profile_row['birth_day']; $get_birth_month = $get_profile_row['birth_month']; $get_birth_year = $get_profile_row['birth_year']; /////////////////////////////////////// // Visitors // /////////////////////////////////////// if (($profile_info['account_type']==0)&&($site_privileges['f_visitors']=='No')){ //do nothing } else if ($site_settings['ifdate_upgrades']=='Yes'){ if (($user_info['account_type']==1)&&($site_privileges['u_visitors']=='No')){ //do nothing } else if ($_GET['username']==$user_info['username']){ // do nothing } else if (($_COOKIE['iFdate']=="Active")&&($user_info['active_status']=="Online")){ mysql_query("INSERT INTO ifdate_visitors (visitor_username, visitor_visitor, visitor_date) VALUES ('".$_GET['username']."', '".$user_info['username']."', '".$today_info."') "); } } /////////////////////////////////////// // Check Privileges // /////////////////////////////////////// if (($profile_info['account_type']==1)&&($site_settings['ifdate_upgrades']=='Yes')&&($site_privileges['u_customize']=="Yes")){ $border_colour = "bgcolor=\"".$profile_info['customize_border']."\""; $title_colour = "<font color=\"".$profile_info['customize_title']."\">"; $text_colour = "<font color=\"".$profile_info['customize_text']."\">"; } else if (($profile_info['account_type']==0)&&($site_privileges['f_customize']=="Yes")){ $border_colour = "bgcolor=\"".$profile_info['customize_border']."\""; $title_colour = "<font color=\"".$profile_info['customize_title']."\">"; $text_colour = "<font color=\"".$profile_info['customize_text']."\">"; } else { $border_colour = "class=\"main_borders\""; $title_colour = "<font class=\"title_text\">"; $text_colour = "<font class=\"main_text\">"; } /////////////////////////////////////// // Get Total Ratings // /////////////////////////////////////// $total_profile_overall_ratings = getSqlNumber("SELECT * FROM ifdate_rate WHERE rate_username='".$profile_info['username']."'"); ?> <tr> <td colspan="2" height="15"> </td> </tr> <tr align="center"> <td colspan="2" height="15"><img src="themes/<?=$site_settings['ifdate_theme'];?>/images/profile/006.gif" height="2" width="8"><a href="my_profile.php?username=<?=$_GET['username'];?>"><img src="themes/<?=$site_settings['ifdate_theme'];?>/images/profile/001.gif" height="24" width="120" border="0"></a><a href="my_profile_pictures.php?username=<?=$_GET['username'];?>"><img src="themes/<?=$site_settings['ifdate_theme'];?>/images/profile/002.gif" height="24" width="120" border="0"></a><a href="my_profile_guestbook.php?username=<?=$_GET['username'];?>"><img src="themes/<?=$site_settings['ifdate_theme'];?>/images/profile/003.gif" height="24" width="120" border="0"></a><a href="my_profile_buddies.php?username=<?=$_GET['username'];?>"><img src="themes/<?=$site_settings['ifdate_theme'];?>/images/profile/004.gif" height="24" width="120" border="0"></a><a href="my_profile_blog.php?username=<?=$_GET['username'];?>"><img src="themes/<?=$site_settings['ifdate_theme'];?>/images/profile/005.gif" height="24" width="120" border="0"></a><a href="my_profile_videos.php?username=<?=$_GET['username'];?>"><img src="themes/<?=$site_settings['ifdate_theme'];?>/images/profile/014.gif" height="24" width="120" border="0"></a><img src="themes/<?=$site_settings['ifdate_theme'];?>/images/profile/006.gif" height="2" width="8"></td> </tr> <tr align="center"> <td colspan="2" height="15"> </td> </tr> <tr> <td valign="top" width="33%" height="384"> <table width="99%" border="0" cellspacing="0" cellpadding="0" align="right"> <tr> <td class="profile_title" background="themes/<?=$site_settings['ifdate_theme'];?>/images/profile/007.gif"><?=$_GET['username'];?> <hr class="line_colour" size="1"> </td> </tr> <tr> <td> </td> </tr> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0" <?=$border_colour;?>> <tr> <td height="120"> <table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td class="main_middle_background" align="center" height="172"><? $get_main_picture = mysql_query("SELECT * FROM ifdate_pictures WHERE picture_username='".$profile_info['username']."' AND picture_type='1' AND picture_status='1'"); if (mysql_num_rows($get_main_picture)==1){ $got_main_picture = mysql_fetch_array($get_main_picture); echo "<img src=\"".$got_main_picture['picture_path']."\" border=\"3\" width=\"190\" height=\"130\">"; } else { echo "<img src=\"themes/".$site_settings['ifdate_theme']."/images/default_picture.gif\" border=\"3\" width=\"190\" height=\"130\">"; } ?></td> </tr> </table> </td> </tr> </table> </td> </tr> <tr>