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

Размер файла: 1.25Kb
<?php
####################
# Автор: [Svig]    #
# ICQ: 563000172   #
####################

include ("head.php");

echo <<< sss
<div class="nav">
<form name="form" action="menu.php" method="get">
Ваш ник:<br />
<input name="user" maxlength="15" type="text" value=""><br />
Пароль:<br />
<input name="pass" maxlength="20" type="password" value=""><br />
<input type="submit" value="Вход">
</form>
</div>

<div class="nav">
• <a href="reg.php?page=reg">Регистрация</a>
</div>
sss;


include ("conf.php");
$result = mysql_query("SELECT * FROM userlist",$db);
$myrow = mysql_fetch_array($result);
$i = 0;
do
{
$i = $i + 1;
}
while ($myrow = mysql_fetch_array($result));
echo "<div class='nav'><small>Регистраций: ".$i."</small>";

$result = mysql_query("SELECT * FROM userlist WHERE pol='Мужской'",$db);
$myrow = mysql_fetch_array($result);

$i = 0;
do
{
$i = $i + 1;
}
while ($myrow = mysql_fetch_array($result));
echo "<br /><small>Парней: ".$i."</small>";

$result = mysql_query("SELECT * FROM userlist WHERE pol='Женский'",$db);
$myrow = mysql_fetch_array($result);

$i = 0;
do
{
$i = $i + 1;
}
while ($myrow = mysql_fetch_array($result));
echo "<br /><small>Девушек: ".$i." </small></div>";

include ("foot.php");
?>