Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Insert into
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Insert into

 Post Reply Post Reply
Author
ziwez0 View Drop Down
Groupie
Groupie


Joined: 15 July 2002
Location: United Kingdom
Status: Offline
Points: 144
Post Options Post Options   Thanks (0) Thanks(0)   Quote ziwez0 Quote  Post ReplyReply Direct Link To This Post Topic: Insert into
    Posted: 16 April 2003 at 3:28pm

Hey im having a few probs with the following code i get a http 500 error, ive been looking at this code for hours now and cant find what silly mistake ive made...

<!--#include file="Top.asp" -->

<%

ObjSmallImageName = Request.Form("S-name")

%>
<br><br>
<span class="titles">
<%
Response.write "The Following Image Has been added"
Response.write Request.Form("S-Name")

%>
</span>
<br><br>
<%
Dim Conn, dbPath
  dbPath = Server.MapPath("/Database/photo100.mdb")
  Set Conn = Server.CreateObject("ADODB.Connection")
  Conn.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0; DATA SOURCE=" & dbPath

Set UserRecordset = Server.CreateObject("ADODB.Recordset")
sqlstring = "INSERT INTO Photo (SmallImage) VALUES ('" & ObjSmallImageName & "')"

UserRecordset.Open sqlstring, conn

Set objid = UserRecordset("ID")
set objLargeImage = UserRecordset("LargeImage")
Set objSmallImage = UserRecordSet("SmallImage")

While NOT UserRecordset.EOF
%>
Response.Write " & objsmallImage & "
Response.Write "Image Added"
<%

 

conn.close
%>
<!--#include file="bottom.asp" -->

 

any help or ideas will be much helpful.

thanx

If anything takes long to do its worth doing.
Back to Top
eagle00789 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 24 March 2003
Location: Netherlands
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote eagle00789 Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2003 at 3:53pm
first of all. turn of the friendly errors in IE. then post the COMPLETE error wich is stated at the bottom of the http 500 page. then we will be able to help you further
Using forum at Gravenrode and here and here
Back to Top
ziwez0 View Drop Down
Groupie
Groupie


Joined: 15 July 2002
Location: United Kingdom
Status: Offline
Points: 144
Post Options Post Options   Thanks (0) Thanks(0)   Quote ziwez0 Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2003 at 4:30pm

Thanx for your help but ive sorted it now

If anything takes long to do its worth doing.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.