Get ready for BLACK FRIDAY shopping starting in

Forums

ASP

This topic is locked

ASP Upload Problems

Posted 19 Apr 2004 16:48:46
1
has voted
19 Apr 2004 16:48:46 Stephen Bowker posted:
I have the following code to upload an image to a database


SQL = "INSERT INTO tblimages(iimage_blob, ifilename, idescription, ifilesize) VALUES(?, '"
SQL = SQL & File.Filename & "', '"
SQL = SQL & Replace(Upload.Form("DESCR", "'", "''" & "', "
SQL = SQL & File.Size & ""

I have a hidden field called IBID that needs to be inserted but i'm not sure where. There is a fiedl in the database to accomodate it though

Reply to this topic