Code:
<%
Set myDict = Server.CreateObject("Scripting.Dictionary")
Set objconn = Server.CreateObject("ADODB.Connection")
objconn.Open "DRIVER={MySQL ODBC 5.1 Driver};SERVER=...;"
SQL = " SELECT * FROM _newTable1 "
Set objRS = Server.CreateObject("ADODB.Recordset")
objRS.Open SQL, objconn
if Not objRS.eof then
while not objRS.eof
str = objRS("frase")
myArray = split(str,"..")
for index = 0 to UBound(myArray)
if ( not myDict.Exists(myArray(index)) ) then
myDict.Add myArray(index), myArray(index)
Response.Write myDict(myArray(index)) & "<br>"
end if
next
objRS.movenext()
wend
end if
objRS.Close()
Set objRS = Nothing
objConn.Close()
Set objConn = Nothing
Set myDict = Nothing
%>
Output:
Code:
.Mem C
For A
Gia A
Cir G.
Bookmarks