|
|
|
|
<? Error_Reporting(E_ALL & ~E_NOTICE); ?>
<html><head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../_rootcss.css" rel="stylesheet" type="text/css">
<style type="text/css">
body {
background-attachment: fixed;
background-color: white;
background-repeat: no-repeat;
background-position: left top;
margin:20px 20px 20px 10px;
SCROLLBAR-FACE-COLOR: #CC3300;
SCROLLBAR-HIGHLIGHT-COLOR: #CC3300;
SCROLLBAR-SHADOW-COLOR: #990000;
SCROLLBAR-3DLIGHT-COLOR: #990000;
SCROLLBAR-ARROW-COLOR: #FFFFFF;
SCROLLBAR-TRACK-COLOR: #CC3300;
SCROLLBAR-DARKSHADOW-COLOR: #CC3300;}
</style>
</head><body>
<table width='100%' border='1' cellspacing='0' cellpadding='3'>
<?php
Error_Reporting(E_ALL & ~E_NOTICE);
mysql_connect("localhost", "syuzanna", "123456") or die("Could not connect: ".mysql_error());
mysql_select_db("syuzanna");
$result = mysql_query("SELECT id, name_ru FROM profile WHERE name_ru<>'none'");
$final = 0;
$final2 = 0;
while ($row = mysql_fetch_row($result) ){
if($final2 == 0) echo "<table width='100%' valign='center' border='1' cellspacing='0' cellpadding='3'>";
if($final == 0) echo "<tr>";
echo "<td width='30%'><center>".$row[1]."</center></td>";
$final++;
if($final == 3)
{
echo "</tr>";
$final = 0;
}
$final2++;
if($final2 == 3)
{
echo "</table><br>";
$final2 = 0;
}
}
mysql_free_result($result);
mysql_close;
?>
</table>
</body></html>
|
podskazite pozalusta kak mozno sdelat postranichnuju navigaciju (<nazad vperjod>), chto bi na kazdoj stranice otobrazalosj po tri imeni? | |
|
|