Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> skrypt ogloszen ! problem !, phpclassifieds pilne !!
-Gość_kolekk-
post 28.11.2005, 01:48:55
Post #1





Goście







Witam wszystkich exclamation.gif
jestem poczatkujacy w php exclamation.gif sad.gif
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 exclamation.gif

1)nie moge ustawic aby rubryki byly rowne exclamation.gif jak widac jedna jest wieksza jedna mniejsza exclamation.gif
najlepiaj jak by to wygladalo tak ja na stronie ponizej http://ogloszenia.moje.pl
2)chcial bym aby wyswietlalo sie kategoria tak jak na http://ogloszenia.moje.pl -na czerwono

skrypt mozna zanlezc na http://www.deltascripts.com

prosze o pomoc exclamation.gif!!!!!! naprawde pilne exclamation.gif
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
-Guest-
post 28.11.2005, 01:53:50
Post #2





Goście







Cytat(Gość_kolekk @ 2005-11-28 00:48:55)
Witam wszystkich exclamation.gif
jestem poczatkujacy w php exclamation.gif sad.gif
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 exclamation.gif

1)nie moge ustawic aby rubryki byly rowne exclamation.gif jak widac jedna jest wieksza jedna mniejsza exclamation.gif
najlepiaj jak by to wygladalo tak ja na stronie ponizej http://ogloszenia.moje.pl
2)chcial bym aby wyswietlalo sie kategoria tak jak na http://ogloszenia.moje.pl -na czerwono

skrypt mozna zanlezc na http://www.deltascripts.com

prosze o pomoc exclamation.gif!!!!!! naprawde pilne exclamation.gif

tak wyglada moj plik special.php w ktorym znajdje sie to wszystko exclamation.gif jest juz troche poprzerabiany przezemnie exclamation.gif

<?
$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;
}


}

?>
Go to the top of the page
+Quote Post
ActivePlayer
post 28.11.2005, 07:35:52
Post #3





Grupa: Przyjaciele php.pl
Postów: 1 224
Pomógł: 40
Dołączył: 6.07.2004
Skąd: Wuppertal

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


crossposting, brak bb codu, co jeszcze :|
http://forum.php.pl/index.php?showtopic=38028&hl=
Go to the top of the page
+Quote Post

Closed TopicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 06:50