Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Pozycjonowanie tabeli, pozycjonowanie
monter2313
post
Post #1





Grupa: Zarejestrowani
Postów: 22
Pomógł: 0
Dołączył: 28.02.2012

Ostrzeżenie: (0%)
-----


  1. <?
  2. if(file_exists("CONFIG/config.php")) require_once("CONFIG/config.php");
  3. connect();
  4.  
  5. $query = "SELECT * FROM ".PREFIX."rezerwacja WHERE Id_user_rezerwacji='".$_SESSION['id']."'";
  6. $result = mysql_query ($query) or die (mysql_error());
  7.  
  8.  
  9.  
  10.  
  11. while($wiersz = mysql_fetch_array($result)){
  12.  
  13.  
  14. $oglo = "SELECT * FROM ".PREFIX."rezerwacja WHERE ID_rezerwacji='".$wiersz[0]."'";
  15. $cv = mysql_query ($oglo) or die (mysql_error());
  16.  
  17.  
  18. $usun = "<a href='usun_apli.php?id=".$wiersz[0]."'>Usuń</a>";
  19.  
  20.  
  21. echo "<table border='2'>";
  22. echo "<tr> <th>Imie</th> <th>Nazwisko</th> <th>Nazwa oferty</th> <th>Data_rezerwacji</th> <th>Liczba noclegów</th> </tr>";
  23. while($row = mysql_fetch_array( $cv )) {
  24. echo "<tr><td>";
  25. echo $row['Imie_rezerwacji'];
  26. echo "</td><td>";
  27. echo $row['Nazwisko_rezerwacji'];
  28. echo "</td><td>";
  29. echo $row['Nazwa_oferty'];
  30. echo "</td><td>";
  31. echo $row['Data_rezerwacji'];
  32. echo "</td><td>";
  33. echo $row['Rezerwacja_ile_dni'];
  34. echo "</td><td>";
  35. echo $usun;
  36. echo "</td></tr>";
  37. }
  38. }
  39. echo "</table>";
  40.  
  41. ?>
  42.  
  43.  
  44. <html>
  45. <head>
  46.  
  47. <link rel="stylesheet" href="style.css" type="text/css">
  48.  
  49.  
  50. <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  51.  
  52. </head>
  53.  
  54. <body>
  55.  
  56.  
  57. <body style= " background-image: url(tlo1.jpg)">
  58.  
  59.  
  60. <?
  61. include("menu.php");
  62. ?>
  63.  
  64. </body>
  65. </html>


W tym kodzie mam tabelka jaką metodą ją umieścić by nie wyświetlała sie w lewym górnym rogu tylko tam gdzie ja chce
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 00:04