Otóż stworzyłem sobie stronę, a na niej 3 tabele. Pierwszą tabelą jest menu po lewej stronie, drugą jest treść strony, a trzecią- statystyki po prawej stronie. Następnie zrobiłem w php skrypt rankingu. I jeśli w nim ustawię, aby wyświetlał 10 największych rekordów, to jest ok, natomiast jeśli ustawię 20 rekordów, to trzeba przewijać stronę, przez co rozjeżdża się prawa tabela, a dokładniej zjeżdża na dół, i jest niżej od tabeli lewej, co brzydko wygląda. Tak wygląda mój kod:
<?php session_start(); if (isset($_SESSION['user_id']) and isset($_SESSION['login'])) { ?> <html> <br> <head> <style type="text/css"> @import url(ranking.css); </style <link rel="Stylesheet" type="text/css" href="style.css" /> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Language" content="pl"> </head> <body> <div align="center"> <center> <table border="0" cellpadding="6" width="946" height="469"> <tr> <td colspan="2" nowrap width="615" height="36"> </tr> <tr> <?php require('lewemenu.php'); ?> <center> <?php require('conn.php'); $wynik = mysql_query("SELECT * FROM user ORDER BY doswiadczenie DESC LIMIT 10") or die('Błšd zapytania'); if(mysql_num_rows($wynik) > 0) { /* jeżeli wynik jest pozytywny, to wy?wietlamy dane */ echo "<table cellpadding=\"2\" border=\"0\" bordercolor=\"white\" width=\"400\" id=\"ranking\">"; while($r = mysql_fetch_assoc($wynik)) { echo "<tr>"; echo "<td onmouseover=\"Tip('Doświadczenie')\" onmouseout=UnTip() class=\"mov11\" href=\"java script:void(0)\" bordercolor=\"white\">".$r['doswiadczenie']."</td>"; echo "<td onmouseover=\"Tip('Respekt')\" onmouseout=UnTip() class=\"mov11\" href=\"java script:void(0)\" bordercolor=\"white\">".$r['respekt']."</td>"; echo "<td onmouseover=\"Tip('Kasa')\" onmouseout=UnTip() class=\"mov11\" href=\"java script:void(0)\" bordercolor=\"white\">".$r['kasa']."</td>"; echo "<td onmouseover=\"Tip('Poziom')\" onmouseout=UnTip() class=\"mov11\" href=\"java script:void(0)\" bordercolor=\"white\">".$r['poziom']."</td>"; echo "</tr>"; } echo "</table>"; } ?> </body> <td width="144" height="405"> <div align="center" style="width: 144; height: 458"> <center> <font size="2"> <?php require('prawemenu.php'); ?> <table border="0" cellPadding="6" width="96%"> </tr> </table> </center> </div> </td> </tr> </table> </center> </div> <?php } else { echo "Nie jesteś zalogowany"; header("Location: logowanie.php"); } ?> </body> </html> <center>Stworzone przez Arthesa, wszelkie prawa zastrzeżone.
Mam nadzieję, że ktoś pomoże.
Pozdrawiam ;>