pehapx
29.08.2008, 17:08:20
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...
szopen
29.08.2008, 17:12:08
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
29.08.2008, 17:20:00
<?php include(".gora.php");
?>
<table height="25" cellSpacing="0" cellPadding="0" width="95%" align="center" background="images/fon_bar01.gif" border="0"> <table cellSpacing="0" cellPadding="0" bgColor="#ffffff" background border="0"> <table cellSpacing="0" cellPadding="0" bgColor="#ffffff" background border="0"> <td><img alt src="images/e04.gif" align="left" border="0" width="21" height="21"></td> <p class="bar01" style="FONT-SIZE: 18px; COLOR: #3466de">Dowcipy:
</p> <table border="0" cellpadding="0" cellspacing="0" width="416" height="97"> <td width="6" height="97"></td> <td width="543" height="97"> <table height="40" cellSpacing="0" cellPadding="0" width="555" border="0"> <td width="10" height="11"><img alt src="images/t_11.gif" border="0" width="10" height="9"></td> <td width="545" background="images/t_13.gif" height="11"><img alt src="images/t_12.gif" border="0" width="6" height="9"></td> <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> <td width="10" height="11"><img alt src="images/t_15.gif" border="0" width="10" height="9"></td> <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> <td width="542" colSpan="2" height="17" rowSpan="2"><!-- in --> <table height="48" cellSpacing="0" cellPadding="0" width="535" border="0"> ->ZAPYTANIE DO BAZY DANYCH<-
<!-- /in -->
<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> <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> <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> <td width="10" height="12"><img alt src="images/t_41.gif" border="0" width="10" height="10"></td> <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> <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> <td width="10" height="12"><img alt src="images/t_45.gif" border="0" width="10" height="10"></td> <!-- /left -->
<?php include(".dol.php");
?>
Może źle includuję górę i dół
pehapx
29.08.2008, 17:21:39
Zapytanie do bazy danych dodam za chwilę...
pehapx
29.08.2008, 17:23:09
<?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³¹d wykonania zapytania<br>" );
}
}
else
{
print( "B³¹d wyboru bazy danych<br>" );
}
}
else
{
print( "B³¹d przy pod³¹czaniu do bazy danych<br>" );
} ?>
szopen
29.08.2008, 17:23:11
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
29.08.2008, 17:38:36
.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