$la_view_prod_noexist
"; } // build page for product if($totalrows!==0) { while ($row = mysql_fetch_array($select_prod)) { $title = $row["title"]; $image = $row["image"]; $description = $row["description"]; $quantity = $row["quantity"]; $rozmiar = $row["rozmiar"]; $price = $row["price"]; $sale_price = $row["sale_price"]; $cat_id = $row["cat_id"]; $popularity = $row["popularity"]; $autor = $row["autor"]; } // add 1 to products popularity $new_pop = $popularity + 1; $sql_update = "update ".$prefix."store_inventory set popularity='$new_pop' where product='".$product."'"; $result = mysql_query ($sql_update); $title=stripslashes($title); $description = stripslashes($description); $description = nl2br($description); $select_cat = mysql_query( "SELECT * FROM ".$prefix."store_category WHERE cat_id='".$cat_id."'"); while ($row = mysql_fetch_array($select_cat)) { $category = $row["category"]; $cat_image = $row["cat_image"]; } // navigation if directed from search.php if($searchlink=="yes") { echo"$la_search_home > $la_view_prod_search_res > $title