Pomoc - Szukaj - U¿ytkownicy - Kalendarz
Pe³na wersja: phpclassfields problem ! PILNE !
Forum PHP.pl > Forum > Gotowe rozwi±zania
kolekk
Witam wszystkich bardzo serdecznie exclamation.gif
Mam pilna sprawe a mianowicie, przerabiam ze znajomy phpclassifieds - http://www.deltascripts.com portal ogloszeniowy ze tak powiem exclamation.gif i mamy maly problem exclamation.gif w php jestesmy poczatkujacy exclamation.gif!

chodzi o to:
skrypt ten posiada cos takiego jak ogloszenia premium sa to ogloszenia ktore wyswietlane sa na glownej stronie ! w orginalnej wersji byla to tylko nazwa ogloszenia po prezrobieniu jest to tresz zdjecie i nazwa exclamation.gif

i tu jest problem chcial bym jeszcze aby wyswetlala sie kategoria w jakiej jest ogloszenia oraz mam problem z robrykami sa one nierowne exclamation.gif nie wiem moze za dlogo przy tym siedzialem questionmark.gif i niemoge sobie z tym poradzic exclamation.gif

przyklad jka ma to wygladac jest exclamation.gif http://ogloszenia.moje.pl - te z kategoriami na czerwono

pisalem juz do goscia czy nie udostepnil by mi pliku special.php w ktorym znajduje sie to exclamation.gif ale nie otrzymalem odzewu exclamation.gif

a oto plik special.php ktory ja przerobilem exclamation.gif
  1. <?
  2. $limit = 5;
  3. ?>
  4.  
  5.  
  6. <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" >
  7. <tr> 
  8. <td><center><b><font color="#bd1111">OFERTY PREMIUM:</font></b></center>
  9. </td>
  10. </tr> 
  11. </table>
  12. <br>
  13. <center>
  14. <table border="1" style="border-collapse:collapse; border-color:navy;" width="780" cellspacing="1" cellpadding="2" background="layout_images/back.gif">
  15.  
  16. <tr>  
  17.  
  18. <? 
  19. //require("admin/inc.php"); 
  20.  
  21. // Sql statement to get the ads that are special ordered randomly. 
  22.  
  23. $sql_siste = "select sitetitle, siteid, sitedescription from $ads_tbl where is_special = 
    1 order by rand() limit 5 "
    ; 
  24.  
  25. $sql_siste_result = mysql_query ($sql_siste); 
  26. $num_links = mysql_num_rows($sql_siste_result); 
  27.  
  28. // This for statement is used to show those 5 ads that we had limited to. 
  29. print("</td><td>"); 
  30.  
  31. for ($i=0; $i<$num_links; $i++) 
  32. { 
  33.  
  34. $row = mysql_fetch_array($sql_siste_result); 
  35. $sitetitle1_siste = $row["sitetitle"]; 
  36. $siteid = $row["siteid"]; 
  37. $sitedescription = $row["sitedescription"];
  38.  
  39.  
  40.  
  41. // Sql statement to get the image while i am still getting new rows, stillkeeping 
    the 
  42. // link between the ad and the image. 
  43.  
  44. $img = "select * from $pic_tbl where pictures_siteid = $siteid"; 
  45. $result_sq = mysql_query($img); 
  46. $realimg = mysql_fetch_array($result_sq); 
  47. $image = $realimg["filename"]; 
  48. $sitetitle1_toshow = substr($sitetitle1_siste, 0, 20); 
  49. $sitedescription = substr($sitedescription, 0, 255); 
  50.  
  51. if($image) {print("<a href='detail.php?siteid=$siteid'><center><img src='images/$image' width='100' height='100' border='0'></center><br>"); }
  52. print("<a href='detail.php?siteid=$siteid'><center>$sitetitle1_toshow</center></a><Br>"); 
  53. print("<center>$sitedescription</center><br>");
  54.  
  55.  
  56. // This see if their are 2 in column, if so it goes to the next one. 
  57. $t++; 
  58.  
  59. if ($t==$1) 
  60. { 
  61. print"<td></td>"; 
  62. $t==0; 
  63. } 
  64.  
  65.  
  66. } 
  67.  
  68. ?> 
  69. <center><font size="1"><a href="javascript:displayWindow('details_premium.html',300,200)"><? print (" Chcesz ustawiæ swoje og³oszenie jako PREMIUM? Kliknij tutaj! "); ?></a></font><br>
  70. </td>  </tr>
  71. </table></center>



SPRAWAJEST PILNA exclamation.gif POZDRAWIEM exclamation.gif

________
Brak BB code... Wrrrrrrrr...

ActivePlayer
nospor
php -> Gotowe skrypty php

pozatym krzyczenie ze sprawa jest pilna ci nie pomoze a moze wrecz zaszkodzic
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.