Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [PHP][HTML]Dziwny błąd
Forum PHP.pl > Forum > Przedszkole
pehapx
Mam pytanie... Czy ktoś wie co może być problemem na mojej stronie: LINK. Wyświetla się ona tak jakby 2 razy (po zakończeniu kodu html pod spodem widać go od nowa). Byłbym wdzięczny za pomoc... sadsmiley02.gif
szopen
niestety moja magiczna kula się zepsuła i muszę Cię poprosić o kawałek kodu... Mogę strzelać, że problem jest w ob_* (patrz: OB), albo 2x inlude
pehapx
  1. <?php include(".gora.php");
  2. ?>
  3. <table height="25" cellSpacing="0" cellPadding="0" width="95%" align="center" background="images/fon_bar01.gif" border="0">
  4. <tr>
  5. <td>
  6. <table cellSpacing="0" cellPadding="0" bgColor="#ffffff" background border="0">
  7. <tr>
  8. <td>
  9. <table cellSpacing="0" cellPadding="0" bgColor="#ffffff" background border="0">
  10. <tr>
  11. <td><img alt src="images/e04.gif" align="left" border="0" width="21" height="21"></td>
  12. <td>
  13. <p class="bar01" style="FONT-SIZE: 18px; COLOR: #3466de">Dowcipy: </p>
  14. </td>
  15. </tr>
  16. </tbody>
  17. </table>
  18. </td>
  19. </tr>
  20. </tbody>
  21. </table>
  22. </td>
  23. </tr>
  24. </tbody>
  25. <table border="0" cellpadding="0" cellspacing="0" width="416" height="97">
  26. <tr>
  27. <td width="6" height="97"></td>
  28. <td width="543" height="97">
  29. <table height="40" cellSpacing="0" cellPadding="0" width="555" border="0">
  30. <tr>
  31. <td width="10" height="11"><img alt src="images/t_11.gif" border="0" width="10" height="9"></td>
  32. <td width="545" background="images/t_13.gif" height="11"><img alt src="images/t_12.gif" border="0" width="6" height="9"></td>
  33. <td align="right" width="7" background="images/t_13.gif" height="11"><img alt src="images/t_14.gif" border="0" width="6" height="9"></td>
  34. <td width="10" height="11"><img alt src="images/t_15.gif" border="0" width="10" height="9"></td>
  35. </tr>
  36. <tr vAlign="top">
  37. <td width="10" background="images/t_fon_left.gif" height="34"><img alt src="images/t_21.gif" border="0" width="10" height="6"></td>
  38. <td width="542" colSpan="2" height="17" rowSpan="2"><!-- in -->
  39. <table height="48" cellSpacing="0" cellPadding="0" width="535" border="0">
  40. <tr>
  41. <p class="menu01"><?php
  42. ->ZAPYTANIE DO BAZY DANYCH<-
  43. ?> </tr>
  44. </tbody>
  45. </table>
  46. <!-- /in -->
  47. </td>
  48. <td width="10" background="images/t_fon_right.gif" height="34"><img alt src="images/t_23.gif" border="0" width="10" height="6"></td>
  49. </tr>
  50. <tr vAlign="bottom">
  51. <td width="10" background="images/t_fon_left.gif" height="1"><img alt src="images/t_31.gif" border="0" width="10" height="7"></td>
  52. <td width="10" background="images/t_fon_right.gif" height="1"><img alt src="images/t_33.gif" border="0" width="10" height="7"></td>
  53. </tr>
  54. <tr>
  55. <td width="10" height="12"><img alt src="images/t_41.gif" border="0" width="10" height="10"></td>
  56. <td width="545" background="images/t_fon_bot.gif" height="12"><img alt src="images/t_42.gif" border="0" width="6" height="10"></td>
  57. <td align="right" width="7" background="images/t_fon_bot.gif" height="12"><img alt src="images/t_44.gif" border="0" width="6" height="10"></td>
  58. <td width="10" height="12"><img alt src="images/t_45.gif" border="0" width="10" height="10"></td>
  59. </tr>
  60. </tbody>
  61. </table>
  62. <!-- /left -->
  63. </td>
  64. </tr>
  65. <?php include(".dol.php");
  66. ?>

Może źle includuję górę i dółquestionmark.gif
pehapx
Zapytanie do bazy danych dodam za chwilę...
pehapx
<?php
$aDBLink= @mysql_connect( "xxxxx", "xxxxx", "xxxxx" );
if ( !empty( $aDBLink ) )
{
if ( mysql_select_db( "xxxxx", $aDBLink ) == True )
{
$aSQL = "select * from xxxxx ORDER BY xxxxx DESC";
$aQResult = mysql_query( $aSQL, $aDBLink );
if ( $aQResult == True )
{
while ( $aRow = mysql_fetch_array( $aQResult ) )
{
$dowcip = $aRow["xxxxx"];
$dowcip2 = $aRow["xxxxx"];
$data = $aRow["xxxxx"];
include(".mgora.php");
print( "<td width=70>
<p class=menu01><image src=images/lol.gif </td><td>
<p class=menu01><b>Data dodania: $data</b><br><br>$dowcip</p>
</td>" );
include(".mdol.php");
}
mysql_free_result( $aQResult );
}
else
{
print( "B&sup3;&sup1;d wykonania zapytania<br>" );
}
}
else
{
print( "B&sup3;&sup1;d wyboru bazy danych<br>" );
}
}
else
{
print( "B&sup3;&sup1;d przy pod&sup3;&sup1;czaniu do bazy danych<br>" );
} ?>
szopen
Kod HTML możesz wyciąć, aby nie zamazywał obrazu. Sam PHP powinien wystarczyć. Jak nazywa się ten plik z postu #3? Co jest w .dol.php i .gora.php?
pehapx
.gora.php - plik z nagłówkiem strony i menu
.dol.php - plik ze stopką strony
.mgora.php - plik z początkiem tabelki, w której wyświetlam każdy wynik
.mdol.php - plik z końcówką tabelki, w której wyświetlam każdy wynik
szopen
chyba się nie dogadamy winksmiley.jpg
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.