%@ Language=VBScript %> <%Option Explicit%> <% if session("LastNameOnTop") & "" = "" AND session("UserID") & "" <> "" then%> <%end if dim oRs, oConn, SQL, i, RecipCategs, Data, Dataexist dim ChefData, ChefDataExist RecipCategs = Application("RecCategs"&lang) 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 = "Select top 4 RecipeID, RecipeName"&templang&", dbo.GetLessText(RecipeInfo"&templang&",30) as RecipeInfo, IsNull(RecipePhotos,'default.jpg'), IsNull(RecipeThumbs,'default.jpg') from Recipe where RecipeShow=1 AND ChefID <> '' order by NewID()" oRs.open SQL, oConn, 3,1,1 if oRs.EOF = false then Data = oRs.GetRows() Dataexist = 1 end if oRs.close SQL = "Select ChefID, ChefName" & lang &" from Chefs order by ChefOrder" oRs.open SQL, oConn, 3,1,1 if oRs.EOF = false then ChefData = oRs.GetRows() ChefDataExist = 1 end if oRs.close GoToPage = "RecChefs.asp" menu = "2" %>