Вот полность весь код и всес таницы:
<?
if (@$_GET['t'] == '') {
?>
<?
require('mysql.php');
$from=@$_GET['from'];
if ($from == "") $from = "0";
$uid = $_SESSION['uid'];
$query = "SELECT *
FROM users
WHERE id_user = $uid
";
$do = mysql_query($query);
$online_users=array();
for($x=0;($online_users[$x]=mysql_fetch_assoc($do));$x++);
$total_count=$x;
unset($online_users[count($online_users)-1]);
for($x=$from;$x<$from+100 && $x<count($online_users);$x++)
{
$name = $online_users[$x]['name'];
$gorod = $online_users[$x]['gorod'];
$street = $online_users[$x]['street'];
$dom = $online_users[$x]['dom'];
$mail = $online_users[$x]['mail'];
$phone = $online_users[$x]['phone'];
$www = $online_users[$x]['www'];
$history = $online_users[$x]['history'];
$avatar = $online_users[$x]['avatar'];
}
?>
<?}?>
<form action="?act=users_dored" method="get">
<table border="0" cellspacing="0" cellpadding="1" width="100%">
<tr>
<td colspan="2" > <b>Информация:</b></td>
</tr>
<tr>
<td > Название Фирмы</td>
<td >
<input name="name" type="text" value="<? echo $name; ?>" ></td>
</tr>
<tr>
<td > Город</td>
<td >
<input name="gorod" type="text" value="<? echo $gorod; ?>" ></td>
</tr>
<tr>
<td > Улица</td>
<td >
<input name="street" type="text" value="<? echo $street; ?>" ></td>
</tr>
<tr>
<td > Дом</td>
<td >
<input name="dom" type="text" value="<? echo $dom; ?>" ></td>
</tr>
<tr>
<td > Почта</td>
<td >
<input name="mail" type="text" value="<? echo $mail; ?>" ></td>
</tr>
<tr>
<td > Телефон</td> <td>
<input name="phone" type="text" value="<? echo $phone; ?>" ></td>
</tr>
<tr>
<td > Сайт</td> <td>
<input name="www" type="text" value="<? echo $www; ?>" ></td>
</tr>
<tr>
<td > О себе</td>
<td >
<textarea name="history" cols="80" rows="10" ><? echo $history; ?></textarea></td>
</tr>
<tr>
<td >
<input type="submit" value="Загрузить" ></td>
</tr>
</table>
</form>
Вот users_dored.php
<?
if (@$_SESSION['admin'] >= "500")
{
if ($_GET['act'] == 'users_dored')
{
$ttt = $_GET['t'];
$name = $_GET['name'];
$gorod = $_GET['gorod'];
$street = $_GET['street'];
$dom = $_GET['dom'];
$mail = $_GET['mail'];
$phone = $_GET['phone'];
$www = $_GET['www'];
$history = $_GET['history'];
$query = "UPDATE `users`
SET
`name` = '$name',
`gorod` = '$gorod',
`street` = '$street',
`dom` = '$dom',
`mail` = '$mail',
`phone` = '$phone',
`www` = '$www',
`history` = '$history'
WHERE
`id_user` = '$ttt'";
$q = mysql_query($query);
if ($q)
{ echo "Записано"; } else { echo "Ошибка"; }
}
} else { echo "<br><br>Админ чтоли?"; }
?>
Что я делаю не так? не работает(((