- 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>
nolka4 14.02.2012 00:58 # 0
guest 14.02.2012 16:54 # 0
istem 14.02.2012 03:29 # −1
> $res = mysql_query($query) or die('...
> while ($row = mysql_fetch_assoc($res)) {...
сто пудов - это почерк пиэйчпи...
guest 14.02.2012 09:48 # 0
istem 14.02.2012 21:41 # −1
Lure Of Chaos 14.02.2012 11:25 # 0
SmackMyBitchUp 14.02.2012 13:45 # +1
Lay down your servers
Give up the fight
One, 21 die
Throw up your hards into the sky,
You and I
DBdev 14.02.2012 14:43 # +1
За PHP не знаю, но структуру БД говную.