Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. //============== ПОДРОБНЕЕ
  2. if ( isset($_GET["id"]) )
  3. {
  4. $query="SELECT * FROM ".$_tab_products." WHERE id = ".$_GET["id"];
  5.  
  6. $result = @mysql_query($query);
  7. $row = @mysql_fetch_array($result);
  8.  
  9. // echo"<h2>".$row["name"]."</h2>";
  10. if( ($row["url2"]!="") && (file_exists($_SERVER["DOCUMENT_ROOT"].$big_pic_path.$row["url2"])) ) { echo"<div class='pic' style='float:left'>"; show_pic($big_pic_path, $row["url2"]); echo"</div>"; }
  11.  
  12. if ( trim(strip_tags($row["info"])) != "" ) echo From_Spaw_To_Site($row["info"],$_BASE_COLOR,$_TABLE_BG);
  13. else echo From_Spaw_To_Site($row["preview"],$_BASE_COLOR,$_TABLE_BG);
  14.  
  15. echo"<div class='price'>";
  16. echo($row["price"])." грн.";
  17. echo"</div>";
  18. echo"<div><a href='/products/".$_GET["cat"]."/page".$pageno."/' class=\"more\">Назад</a></div>";
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement