%@ LANGUAGE=VBScript %> <% Response.Buffer = True %>
![]() |
![]()
|
||
| <%= FormatDateTime (date, vbLongDate) %> | |||
|
<% DIM prodTemp, compTemp, cateTemp, cat_v cat_v = "" IF Request.Form("lc_product") = "" Then prodTemp = "%" Else prodTemp = Request.Form("lc_product") End IF IF Request.Form("lc_company") = "" Then compTemp = "%" Else compTemp = Request.Form("lc_company") End IF IF Request.Form("lc_catalog") = "All" Then cateTemp = "%" Else cateTemp = Request.Form("lc_catalog") End IF Set IndustryNetSQL = Server.CreateObject("ADODB.Connection") IndustryNetSQL.ConnectionTimeout = Session("IndustryNetSQL_ConnectionTimeout") IndustryNetSQL.CommandTimeout = Session("IndustryNetSQL_CommandTimeout") IndustryNetSQL.Open "thaiindustry", "tinhosting", "tinhosting" sql = "SELECT productName, name, brandname, productdescription, specification, packing, categories.category " & _ " FROM Products, Categories, Company " & _ " WHERE products.companyid = company.companyid AND" & _ " Company.catid = categories.catid AND " & _ " Products.productName LIKE '" & prodTemp & "%' AND" & _ " Categories.category LIKE '" & cateTemp & "%' AND" & _ " name LIKE '" & compTemp & "%'" & _ " ORDER BY categories.category ASC, productName ASC" Set RS = IndustryNetSQL.Execute(sql) %>
|
|
|