Просмотр файла info.php

Размер файла: 1.17Kb
<?php
include ("conf.php");
include ("lock.php");


if ($user == $myrow["user"] && $pass == $myrow["pass"])
{
include ("head.php");
if (isset($_GET['id'])) {$id = $_GET['id'];}

$result = mysql_query("SELECT * FROM userlist WHERE id='$id'",$db);
$myrow = mysql_fetch_array($result);

echo "<div class='nav'>";
echo "<b>Анкета:</b> ".$myrow['user']." <br />";
echo "</div>";
echo "<div class='nav'>";
echo "<b>Имя:</b> ".$myrow['name']." <br />";
echo "<b>Пол:</b> ".$myrow['pol']." <br />";
if ($myrow['gor'] != ''){
echo "<b>Город:</b> ".$myrow['gor']." <br />";
}
if ($myrow['phone'] != ''){
echo "<b>Телефон:</b> ".$myrow['phone']." <br />";
}
if ($myrow['email'] != ''){
echo "<b>E-mail:</b> ".$myrow['email']." <br />";
}
if ($myrow['icq'] != ''){
echo "<b>ICQ:</b> ".$myrow['icq']." <br />";
}
if ($myrow['os'] != ''){
echo "<b>О себе:</b> ".$myrow['os']." <br />";
}

echo "</div>";
echo "<div class='nav'>";
echo "• <a href=menu.php?user=$user&pass=$pass>В меню</a>";
echo "</div>";
include ("foot.php");
exit();
}
else
{
echo "Ошибка! Неверный <b>Ник</b> или <b>Пароль</b><br />";
echo <<<sss
<a href="index.php">На главную</a>
sss;
}
?>