Hi there,
I am working with Zope and want to use an external Method to upload. I found the following code:
f = file.read()
d = DB('milford@localhost milford truLOVE')
r = MySQL.escape(f)
q_str = "insert into FILE_TABLE(ID,DATA) values (null,'" +r+ "')"
d.query(q_str)
print "success"
But I could not locate, the MySQL.escape().
Can somebody give me hint?
Thanx in advance!
solong
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there,
I am working with Zope and want to use an external Method to upload. I found the following code:
f = file.read()
d = DB('milford@localhost milford truLOVE')
r = MySQL.escape(f)
q_str = "insert into FILE_TABLE(ID,DATA) values (null,'" +r+ "')"
d.query(q_str)
print "success"
But I could not locate, the MySQL.escape().
Can somebody give me hint?
Thanx in advance!
solong