%@ LANGUAGE="VBSCRIPT" %>
<% response.buffer=true %>
<%
'on error resume next
dim rsrecord,cnter,mfg1
dim rec(15)
DIM intPageRecords, intRecords, intRecordCount, intCurrentPage
DIM intNumberOfPages, intDisplayPage
cnter=1
const strCnn = "DRIVER={MySQL ODBC 3.51 Driver};Server=localhost;DATABASE=corbin;UID=root;PWD="
Set rsrecord = Server.CreateObject("ADODB.Recordset")
rsrecord.CursorLocation = 3
rsrecord.CursorType = 1
intPageRecords = Request.Querystring("page")
mfg1=Request.Querystring("mfg")
rsrecord.open "select * from prod order by productid" , strcnn
if mfg1="Andy_Benson" then
rsrecord.filter= "productid like '%abs%'"
else
if mfg1="Task" then
rsrecord.filter= "productid like '%task%'"
end if
end if
IF intPageRecords = "" THEN intPageRecords = 1 : intRecords = 1
intRecords = intPageRecords
intPageRecords = ((intPageRecords - 1) * 15) +1
intRecordCount = 0
IF NOT rsrecord.EOF THEN
rsrecord.Move (intPageRecords -1)
DO WHILE intRecordCount < 15 and NOT rsrecord.EOF
rec(cnter)=rsrecord("productid")
cnter=cnter+1
rsrecord.movenext
intRecordCount = intRecordCount +1
Loop
END IF
intCurrentPage = Request.Querystring("page")
if intCurrentPage=<1 then intCurrentPage=1
%>
Stylish Furnishings Home of Sea Tropics
|
Stylish Furnishings The Home of Sea Tropics
n
500 President Clinton
Ave Suite 500 n Little Rock, AR 72201
Tel: 501-372-6064
n
Fax: 501-372-3968
n
Information@seatropics.com
|
|
<%
Set rsrecord = nothing
%>