How to set the date value in a access dadat base
Hi,
I got the following code
access.Edit()
access.Fields("customer").value= row["customer"]
t=row["time"]
print t
access.Fields("Time").value=0.0 # time is a float value
access.Fields("phrase").value= row["phrase"]
access.Fields("key_word_phrase").value = row
["key_word_phrase"]
access.Fields("from_server").value = row["from_server"]
access.Fields("path_name").value = row["path_name"]
id = row["PageID"]
print id
g=str(id)
k=int(g)
access.Fields("PageID").value=k
access.Fields("server_name").value = row["server_name"]
access.Fields("file_name").value = row["file_name"]
access.Update()
It seems like the dat takes in a float. If I want to set it to a
spefic date, like 3/6/2009, how would I do it?
-Ted
--
http://mail.python.org/mailman/listinfo/python-list
Cannot get POST to work
Hi,
I'm trying to post data to a short test script in php I wrote.
The python code to do the post is
import httplib
#server address
conn = httplib.HTTPConnection("localhost")
#file location
conn.request("POST", "/programming/bots/test.php","&ted=fred")
r1 = conn.getresponse()
print r1.status, r1.reason
data1 = r1.read()
print data1
conn.close()
print "new ok"
The PHP script is
print"hello ";
print $_POST["ted"];
Ted post
--
http://mail.python.org/mailman/listinfo/python-list
