the code looks ok for me,

Can you post more specific, including the error ?

pujo

On 7/18/05, nephish <[EMAIL PROTECTED]> wrote:
> Hey there,
> 
> i have a script that i am trying to use to add a record to a MySQL
> database.
> 
> i keep getting a syntax error.
> 
> this works
> cursor.execute("INSERT INTO Table ( numberone ) VALUES ( 'one');")
> 
> but this does not
> cursor.execute("INSERT INTO Table ( numberone, numbertwo ) VALUES
> ( 'one','two');")
> 
> what is getting scrambled here?
> 
> the error i get is syntax error in MySQL query, check the documentation,
> blah blah blah
> 
> thanks
> 
> 
> _______________________________________________
> Tutor maillist  -  [email protected]
> http://mail.python.org/mailman/listinfo/tutor
>
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to