i have such in one app: try: connection = MySQLdb.connect(user="root",passwd="root",host="",db="django") except: print "Could not connect to MySQL server." exit( 0 )
cursor = connection.cursor() cursor.execute( "insert into popo_status( id , author_id , body , type ) VALUES (NULL , '1', body, '1') ") cursor.execute( "select * from popo_status where id=21 ") row = cursor.fetchone() print row[2] 2 excute: 1. cursor.execute( "insert into popo_status( id , author_id , body , type ) VALUES (NULL , '1', body, '1') ") no error, but insert nothing 2. cursor.execute( "select * from popo_status where id=21 ") no error, but ok i cannot image no error exist, but i cannot insert data into table. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---