- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
$query = "SELECT id, login, adress FROM $table";
$res = mysql_query($query) or die('<b>Системная ошибка</b>');
while ($row = mysql_fetch_assoc($res)) {
$id = $row["id"];
$login = $row["login"];
$adress = $row["adress"];
}
/* Закрываем соединение */
mysql_close();
?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<body>
<table>
<tr>
<td><strong><?php echo $id; ?></strong></td>
<td><center><?php echo $login; ?></center></td>
<td><center><?php echo $adress; ?></center></td>
</tr>
</table>
> $res = mysql_query($query) or die('...
> while ($row = mysql_fetch_assoc($res)) {...
сто пудов - это почерк пиэйчпи...
Lay down your servers
Give up the fight
One, 21 die
Throw up your hards into the sky,
You and I
За PHP не знаю, но структуру БД говную.