Jump to content

Retrieving data from database.

Recommended Posts

When I run this I get a 500 Internal Server Error, here is my code.

var weapon="<%set conn=Server.CreateObject("ADODB.Connection")conn.Provider="Microsoft.Jet.OLEDB.4.0"conn.Open "D:\Hosting\5230803\html\access_db\DragonKwest.mdb"set rs = Server.CreateObject("ADODB.recordset")rs.Open "SELECT Weaponimage, equipweapon FROM Characters WHERE Name = '" & user & "'", conndo until rs.EOF  Response.Write("<img src=""" & rs.fields("Weaponimage").value & """></img><span>" & rs.fields("equipweapon").value & "</span>")   next  rs.MoveNextlooprs.closeconn.close%>";

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...