Top.Mail.Ru
Python
? ?
LiveJournal for python.
View:Personal Journal.
View:Friends.
View:Calendar.
Missed some entries? Then simply jump to the previous day or the next day.

Friday, September 23rd, 2005

Subject:First Post
Time:11:04 am.
Hi everyone this my first post to this community. I am new to Python and I suppose I have all the pre requisite dopey questions. Although maybe I can surprise you with a really dopey question. The hardest thing for me so far is finding documentation for modules, that I can understand. I am not completely new to programming, I have been doing PHP for a couple of years, so I understand alot of the mechanics of what I have to do.

Currently I am writing a mysql db object. I need to know how to quote strings. Here is a sample string:

INSERT INTO error_log (error_id, error_time, error) VALUES('', now(), 'BAD SQL ERROR\nUnknown column 'ID' in 'field list'\n')

As you can see I need to handle the quotes in the error.

Thanks.
Comments: Read 32 orAdd Your Own.

LiveJournal for python.

View:User Info.
View:Friends.
View:Calendar.
View:Memories.
Missed some entries? Then simply jump to the previous day or the next day.

Image