A.p:NORMAL {color: #790000;}
A.p:LINK {COLOR: #790000; text-decoration: none; font-weight: normal; font-family: verdana; font-size: 11px}
A.p:VISITED {color: #790000; text-decoration: none; font-weight: normal; font-family: verdana; font-size: 11px}
A.p:ACTIVE {color: #790000; text-decoration: none; font-weight: normal; font-family: verdana; font-size: 11px}
A.p:HOVER {COLOR: #790000 ; text-decoration: none; font-weight: normal; font-family: verdana; font-size: 11px}

A.d:NORMAL {color: #051E33;}
A.d:LINK {COLOR: #051E33; text-decoration: none; font-weight: normal; font-family: verdana; font-size: 12px}
A.d:VISITED {color: #051E33; text-decoration: none; font-weight: normal; font-family: verdana; font-size: 12px}
A.d:ACTIVE {color: #051E33; text-decoration: none; font-weight: normal; font-family: verdana; font-size: 12px}
A.d:HOVER {COLOR: red; text-decoration: none; font-weight: normal; font-family: verdana; font-size: 12px}


A.i:NORMAL {color: red;}
A.i:LINK {COLOR: #143B5A; text-decoration: none; font-weight: normal; font-family: verdana; font-size: 12px}
A.i:VISITED {color: #143B5A; text-decoration: none; font-weight: normal; font-family: verdana; font-size: 12px}
A.i:ACTIVE {color: #143B5A; text-decoration: none; font-weight: normal; font-family: verdana; font-size: 12px}
A.i:HOVER {COLOR: white; text-decoration: none; font-weight: normal; font-family: verdana; font-size: 12px}

A.r:NORMAL {color: red;}
A.r:LINK {color: #051E33; text-decoration: none; font-weight: normal; font-family: verdana; font-size: 12px; text-align:left}
A.r:VISITED {color: #051E33; text-decoration: none; font-weight: normal; font-family: verdana; font-size: 12px; text-align:left}
A.r:ACTIVE {color: #051E33; text-decoration: none; font-weight: normal; font-family: verdana; font-size: 12px; text-align:left}
A.r:HOVER {color: white; text-decoration: none; font-weight: bold; font-family: verdana; font-size: 12px; text-align:left}



A.m:NORMAL {color: #B33634;}
A.m:LINK {COLOR: #B33634; text-decoration: none; font-weight: normal; font-family: verdana; font-size: 11px}
A.m:VISITED {color: #B33634; text-decoration: none; font-weight: normal; font-family: verdana; font-size: 11px}
A.m:ACTIVE {color: #B33634; text-decoration: none; font-weight: normal; font-family: verdana; font-size: 11px}
A.m:HOVER {COLOR: black ; text-decoration: none; font-weight: normal; font-family: verdana; font-size: 11px}

p {text-align: justify; color: #051E33; font-family:verdana; text-decoration: none; font-weight: normal; font-family: verdana; font-size: 11px}

p.srodek {text-align: center color: #051E33; font-weight: normal; font-family: verdana; font-size: 11px}

div {text-align: justify; color: #051E33; font-family:verdana; text-decoration: none; font-weight: normal; font-family: verdana; font-size: 12px}



#edytortekstu iframe,    #edytortekstu textarea {
                border: 1px dotted #666;
                height: 200px;
                width: 80%;
                background: #fdfdfd;
                margin-top: 5px;
                margin-bottom: -20px;
            }

            #edytortekstu textarea {
                display: none;
                padding: 10px;
            }



#edytortekstu {
margin: 10px;
}



#edytortekstu button {
                border: 1px solid #D2D2D2;
                background-color: #F0F0F0;
                float: left;
                margin:5px;
                
            }
            #edytortekstu button:hover {
                background-color: #F0F1E0;
                
            }










<?
$username="root";
$password="";
$database="nieruchomosci";
 
mysql_connect('localhost',$username,$password);
@mysql_select_db($database) or die("Nie odnaleziono bazy danych");
$query="SELECT * FROM tabela";
$result=mysql_query($query);

$i=0;
while ($i < $num) {


$numer=mysql_result($result,$i,"numer");
$nazwa=mysql_result($result,$i,"nazwa");
$zdjêcie=mysql_result($result,$i,"zdjecie");
$rynek=mysql_result($result,$i,"rynek");
$wynajem=mysql_result($result,$i,"wynajem");
$cena=mysql_result($result,$i,"cena");
$pokoje=mysql_result($result,$i,"pokoje");
$powierzchnia=mysql_result($result,$i,"powierzchnia");
$lokalizacja=mysql_result($result,$i,"lokalizacja");
$opis=mysql_result($result,$i,"opis");
$data=mysql_result($result,$i,"data");
$rodzaj=mysql_result($result,$i,"rodzaj");

?>


<tr>
<td><font face="arial" size=1>nr.<? echo $numer; ?></font></td>
<td><font face="arial"><? echo $nazwa; ?></font></td>
</tr>

<tr>
<td rowspan=3><font face="arial"><img src="<? echo $zdjecie; ?>" height=150 width=150></td>
<td><font face="arial"><? echo $cena; ?></font></td>
</tr>

<tr>
<td><font face="Arial"><? echo $powierzchnia; ?></font></td>
</tr>

<tr>
<td><font face="Arial"><a href="<? echo $opis; ?>">WWW </a></font></td>
</tr>




<?
$i++;
}
 
echo "</table>";

?>

