Cytat(Gość_kolekk @ 2005-11-28 00:48:55)
Witam wszystkich

jestem poczatkujacy w php

Na stronie
http://ogloszenia-pleszew.info mamy portal ogloszeniowy wchodzoc na niego 1 co rzuca sie w oczy to ogloszenia premoi i tuwlasnie jest problem

1)nie moge ustawic aby rubryki byly rowne

jak widac jedna jest wieksza jedna mniejsza

najlepiaj jak by to wygladalo tak ja na stronie ponizej
http://ogloszenia.moje.pl2)chcial bym aby wyswietlalo sie kategoria tak jak na
http://ogloszenia.moje.pl -na czerwono
skrypt mozna zanlezc na
http://www.deltascripts.comprosze o pomoc

!!!!!! naprawde pilne

tak wyglada moj plik special.php w ktorym znajdje sie to wszystko

jest juz troche poprzerabiany przezemnie

<?
$limit = 5;
?>
<table background="layout_images/back.gif" border="1" cellspacing="1" cellpadding="1" style="border-style: solid; border-color: navy; border-collapse:collapse;" width="100%" height="18" >
<tr>
<td><center><b><font color="#bd1111">OFERTY PREMIUM:</font></b></center>
</td>
</tr>
</table>
<br>
<center>
<table border="1" style="border-collapse:collapse; border-color:navy;" width="780" cellspacing="1" cellpadding="2" background="layout_images/back.gif">
<tr>
<?
//require("admin/inc.php");
// Sql statement to get the ads that are special ordered randomly.
$sql_siste = "select sitetitle, siteid, sitedescription from $ads_tbl where is_special = 1 order by rand() limit 5 ";
$sql_siste_result = mysql_query ($sql_siste);
$num_links = mysql_num_rows($sql_siste_result);
// This for statement is used to show those 5 ads that we had limited to.
print("</td><td>");
for ($i=0; $i<$num_links; $i++)
{
$row = mysql_fetch_array($sql_siste_result);
$sitetitle1_siste = $row["sitetitle"];
$siteid = $row["siteid"];
$sitedescription = $row["sitedescription"];
// Sql statement to get the image while i am still getting new rows, stillkeeping the
// link between the ad and the image.
$img = "select * from $pic_tbl where pictures_siteid = $siteid";
$result_sq = mysql_query($img);
$realimg = mysql_fetch_array($result_sq);
$image = $realimg["filename"];
$sitetitle1_toshow = substr($sitetitle1_siste, 0, 20);
$sitedescription = substr($sitedescription, 0, 255);
if($image) {print("<a href='detail.php?siteid=$siteid'><center><img src='images/$image' width='100' height='100' border='0'></center><br>"); }
print("<a href='detail.php?siteid=$siteid'><center>$sitetitle1_toshow</center></a><Br>");
print("<center>$sitedescription</center><br>");
// This see if their are 2 in column, if so it goes to the next one.
$t++;
if ($t==$1)
{
print"<td></td>";
$t==0;
}
}
?>