%@ Language=VBScript %> <%Option Explicit%> <% if session("LastNameOnTop") & "" = "" AND session("UserID") & "" <> "" then%> <%end if dim oRs, oConn, SQL, i, RecipCategs, Data, Dataexist dim RecipeID, splitmaterials, RelProdExist, RelProd, ProdCategID RecipeID = Request.Form("RecipeID") RecipCategs = Application("RecCategs"&lang) if recipeID ="" then response.redirect("error.asp") if lang = "GR" then templang = "" else templang = "EN" set oConn = Server.CreateObject("ADODB.Connection") oConn.open Application("Constr") set oRs = Server.createObject("ADODB.Recordset") SQL = "ShowRecipe " & RecipeID & ", '" & lang & "'" oRs.open SQL, oConn, 0, 1, 1 if oRs.EOF = false then Dataexist = 1 Data = oRs.GetRows() Else response.redirect("error.asp") end if oRs.close if lang = "GR" then templang="" else templang="EN" ' ======= Relative Products =========== SQL = "SELECT ProdRec.ProdID, isnull(Product.ProdThumbs,'default.jpg'), ProdDescr.ProdDescr"&templang&", product.ProdCategID from ProdRec "&_ "LEFT OUTER JOIN Product on Product.ProdID = ProdRec.ProdID "&_ "LEFT OUTER JOIN ProdDescr on ProdDescr.ProdDescrID = Product.ProdDescrID "&_ " where RecipeID=" & RecipeID & " AND ProdRec.Way=1" oRs.open SQL, oConn, 3,1,1 if oRs.EOF = false then RelProd = oRs.GetRows() RelProdExist = 1 end if oRs.close GoToPage = "recipefull.asp?RecipeID="&RecipeID menu = "2" %>