Jump to content

Retrieving data from database.


Striped Fish
 Share

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 comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...