Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Whats Wrong # 2
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

asp_storm
Average Member

USA
787 Posts

Posted - 06 April 2002 :  18:14:05  Show Profile  Visit asp_storm's Homepage  Send asp_storm an AOL message
last thing...i am using this code:

<%
Dim ID
Dim upl
Dim NewFileName
Dim Trick
Trick= request.form("Trick")
Dim Skier
Skier= request.form("skier")
Dim url
url=request.form("url")
Dim Photog
Photog= request.form("photog")
Dim sql
Dim connn
connn = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=d:\html\hello\database\images.mdb"
Dim con
Set con = Server.CreateObject("ADODB.Connection")
If Len(File1) > 0 Then
Set upl = Server.CreateObject("ASPSimpleUpload.Upload")
NewFileName = "\cgi-bin\" & upl.ExtractFileName(upl.Form("File1"))
sql="INSERT INTO images (url,Trick,Skier,Photog) values('" & NewFileName & "','"& Trick &"','"& Skier &"','" & Photog & "')"
con.Open connn
con.Execute sql
If upl.SaveToWeb("File1", NewFileName) Then
response.write(NewFileName)

Else
Response.Write("There was an error saving the file to disk.")
End If
Else
sql="INSERT INTO images (url,Trick,Skier,Photog) values('" & url & "','"& Trick &"','"& Skier &"','" & Photog & "')"

con.Open connn
con.Execute sql
con.Close
End If
Set con= Nothing

%>

to try and upload an image to a folder and add the link to it(Url) in the DB..my prob is that i dont get any errors..i just get a blank screen. and the db has a bunch of black record fields, but they still got ids...ie..1..2.3..etc.
any help...thanks!



asp_storm
Average Member

USA
787 Posts

Posted - 06 April 2002 :  18:51:44  Show Profile  Visit asp_storm's Homepage  Send asp_storm an AOL message
thats ok..i got



Go to Top of Page

asp_storm
Average Member

USA
787 Posts

Posted - 06 April 2002 :  18:52:39  Show Profile  Visit asp_storm's Homepage  Send asp_storm an AOL message
thats ok..i got



Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07