Information générale
Catégorie:
Applications Internet
>I found an example of how to get data from a VFP database using ASP files
>
>I'm working with an NT Server 4.0, runnin IIS 3.0 and I have defined de odbc (ODBCTelefonos), some one could check this code and help me.
>
>The example don't work, just display a blank page.
>
>I'm missing something to setup on the server ?
>
>Do I need FoxISAPI ? How I could Setup FoxISAPI ?
>
>The example is the next:
>
>Set Conn = Server.CreateObject("ADODB.Connection")
>Conn.Open 'ODBCTelefonos'
>Set RS = Conn.Execute('SELECT * FROM telefonos!telefonos')
>Do While Not RS.EOF
>= RS("telefono")
>RS.MoveNext
>Loop
>
>RS.Close
>Conn.Close
>
>Thanks And Regards,
>
>Guillermo Bran
I think you have to use Response.Write or exclude the RS("telefono") from the code using %><%; so it is written to the document. Possibly also specifying "DSN=ODBCTelefonos".
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement