MySQL Forums
Forum List  »  General

MySQL Unknown Table?
Posted by: C Davis
Date: April 02, 2005 01:00PM

I am getting the following error with a simple delete statement on a MySQL database...."3687Sample"...is the filename in the record I am trying to delete.

It writes the name of the file to delete in my write statement but then generates the error.

MySQL Unknown table '3687Sample' in where clause

here is the code...any ideas

<!--#include Virtual="/shared/connection.asp" -->

<%



FileToDelete = Request("filename")


response.Write FileToDelete

sql2= "DELETE FROM videos WHERE videos.vidname=" & FileToDelete
myconn.execute(sql2)

Set upl = Server.CreateObject("SoftArtisans.FileUp")
upl.delete "D:\inetpub\bearloebe\videos\" & FileToDelete



response.redirect "VideoAdd.asp"

%>


In addition I know the fileup component works fine because the file is deleted from the directory but the error is occuring on the database.

Options: ReplyQuote


Subject
Written By
Posted
MySQL Unknown Table?
April 02, 2005 01:00PM
April 03, 2005 11:06PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.