<?php
require '/blocks/db.php';
// Получение ID показываемого пользователя
$user_id = $_REQUEST['user_id'];
// Создание инструкции SELECT
$select_query = "SELECT * FROM users WHERE user_id = " . $user_id;
// Запуск запроса
$result = mysql_query($select_query);
if ($result) {
$row = mysql_fetch_array($result);
// Присваивание значений переменным
$first_name = $row['first_name'];
$last_name = $row['last_name'];
$username = $row['username'];
$skype = $row['skype'];
$icq = $row['icq'];
$password = $row['password'];
$email = $row['email'];
} else {
die("Ошибка обнаружения пользователя с ID {$user_id}");
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="description" content="">
<meta name="keywords" content="">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title></title>
<link rel="stylesheet" href="scripts/jquery-ui.css" />
<script src="scripts/jquery-1.8.3.js"></script>
<script src="scripts/jquery-ui.js"></script>
<link href="style.css" rel="stylesheet" type="text/css">
<link href="scripts/phpMM.css" rel="stylesheet" type="text/css" />
<script>
$(function() {
$( "#tabs" ).tabs();
});
</script>
</head>
<body bgcolor="#E0E0E0">
<table width="900" border="2" align="center" bgcolor="#EBEBEB">
<tr>
<td><img src="img/header.jpg" width="900" height="100"></td>
</tr>
<tr>
<td><table width="100%" border="2">
<tr>
<td width="20%" height="453" align="left" valign="top" bgcolor="#FFFFFF"><p><a href="index.php">Главная</a></p>
<p><a href="create_user.php">Регистрация</a><a href="/exmoney.com.ua/create_user.php"></a></p>
<p>Вход</p></td>
<td width="80%" valign="top">
<div id="example">Профиль</div>
<div class="user_profile">
<h1><?php echo "$first_name $last_name"; ?></h1>
<p>Ваш Логин: <?php echo "$username"; ?></p>
<p>Ваш Skype: <?php echo "$skype"; ?></p>
<p>Ваш ICQ: <?php echo "$icq"; ?></p>
<p>Ваш пароль: <?php echo "$password"; ?></p>
<p>Ваш e-mail: <?php echo "$email"; ?></p>
</div>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="img/footer.jpg" width="900" height="50"></td>
</tr>
</table>
</body>
</html>
Подскажите пожалуйста в чем может быть ошибка!!!