EasyCFM.COM ColdFusion Forums / ASP to CFML / ASP Code and Me :(

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: ASP Code and Me :(

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts last

gavy
08-20-2009 @ 7:51 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Junior Member
Posts: 72
Joined: Feb 2005

I am tsumbled up with asp Code so much extra coding and i am just dumb here:

i have the following code where i am getting into trouble.:

IF Request.Form("option") <> "" THEN

DIM vOpt, vsize, n

vOpt = split(Request.Form("selOption"),",")
vsize = UBound(vOpt)
n=0

FOR n=0 TO vsize
IF vOpt(n) > "" THEN
          DIM sqlOptions, rsOpt, vOptID
          sqlOptions="sql query which is eual to "
          sqlOptions=sqlOptions & vOpt(n)
          sqlOptions=sqlOptions & ";"

          Set rsOpt = Server.CreateObject("ADODB.Recordset")
          rsOpt.Open sqlOptions
          IF NOT rsOpt.EOF THEN
          While Not rsOpt.EOF
     IF n=0 THEN
          DCart(page,Item) = vOpt(n)
          vID = vOpt(n)
          DCart(page1,Item) = rsOpt("Name")
          DCart(page2,Item) = rsOpt("Desc")
          DCart(page3,Item) = rsOpt("Net")
     END IF
     Next     
End if
end if


can u show me what above is happening

<< << ArrowHead >> >>

<cf_bitterhead>
I Changed My Signature Coldfusion + Fusebox Started
</cf_bitterhead>

This message was edited by gavy on 8-20-09 @ 7:52 AM


Website Designed and Developed by Pablo Varando.