Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Closed TopicStart new topic
> skrypt ogloszen ! problem !, phpclassifieds pilne !!
-Gość_kolekk-
post
Post #1





Goście







Witam wszystkich (IMG:http://forum.php.pl/style_emoticons/default/exclamation.gif)
jestem poczatkujacy w php (IMG:http://forum.php.pl/style_emoticons/default/exclamation.gif) (IMG:http://forum.php.pl/style_emoticons/default/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 (IMG:http://forum.php.pl/style_emoticons/default/exclamation.gif)

1)nie moge ustawic aby rubryki byly rowne (IMG:http://forum.php.pl/style_emoticons/default/exclamation.gif) jak widac jedna jest wieksza jedna mniejsza (IMG:http://forum.php.pl/style_emoticons/default/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 (IMG:http://forum.php.pl/style_emoticons/default/exclamation.gif) !!!!!! naprawde pilne (IMG:http://forum.php.pl/style_emoticons/default/exclamation.gif)
Go to the top of the page
+Quote Post
-Guest-
post
Post #2





Goście







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

1)nie moge ustawic aby rubryki byly rowne (IMG:http://forum.php.pl/style_emoticons/default/exclamation.gif) jak widac jedna jest wieksza jedna mniejsza (IMG:http://forum.php.pl/style_emoticons/default/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 (IMG:http://forum.php.pl/style_emoticons/default/exclamation.gif) !!!!!! naprawde pilne (IMG:http://forum.php.pl/style_emoticons/default/exclamation.gif)

tak wyglada moj plik special.php w ktorym znajdje sie to wszystko (IMG:http://forum.php.pl/style_emoticons/default/exclamation.gif) jest juz troche poprzerabiany przezemnie (IMG:http://forum.php.pl/style_emoticons/default/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
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
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 15.09.2025 - 04:34