dbWriter Home
IP to Country Look up
Site Map

IP to Country DB

Free Databases:

ASP Code

ASP Links

VB Script functions:
Array
Case/Select
In String (inStr)
Replace

HTML code:
SELECT Color
SELECT Countries
SELECT Language
SELECT State/Province

SQL:

SQL Functions:
Delete leading Char
Get Browser
Long number from IP

Stored Procedures:

SQL Tricks:
Delete ALL duplicates
Delete dup records

MISC
IP Address Owner
MS SQL Server

Mortgage Calcs:
how much is my payment
Loan Amortization
Loan Calculator
Mortgage Calculator
Motrgage Pay Off

dbWriter License

Link to US

Links

Contact US
 

VBScript: ARRAY from a record set... ASP code

Build an array from a Record set

(NOTE that the first part of a record set array is the table columns and the second part is the row!!)

<%

DIM rs, i
DIM rsARR

DIM rsCOL_1, rsCOL_2, rsCOL_3, rsCOL_4

Set rs = Server.CreateObject("ADODB.Recordset")

rs.connectionstring = YOURDATABASECONNECTIONSTRING
rs.Open


IF NOT rs.eof then

rsARR = rs.GetRows()

    FOR i = 0 to ubound(rsARR, 2)

      rsCOL_1 = rsARR(0, i)
      rsCOL_2 = rsARR(1, i)
      rsCOL_3 = rsARR(2, i)
      rsCOL_4 = rsARR(3, i)
  

' you code goes here-----------------------------




' you code goes here-----------------------------
   NEXT


ELSE
response.write ("NO Records found!")
END IF


rs.close
set rs = nothing
%>


Partners/Links © 2005 - 2008 dbWriter.com All Rights Reserved
This site is protected by the dbWriter IPtoCountry MS/SQL database!!
Site map | Link to US
Contact Us

Sign up for PayPal and start accepting credit card payments instantly.