<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<BR>De aproape 2 zile tot incerc sa fac modulul de scriere in baza de date sa mearga. Tot restrangand problema nu am reusit sa identific exact problema. Am creat astfel o baza de date pe propiul pc si am incercat sa vad daca merge macar sa introduc ceva simplu in baza de date... Stupoare !!! ... Pot sa execut aproape orice comanda SQL (creare tabel,stergerea  tabel,selectie date ...) dar pana acum nici o comanda de inserare cat de simpla nu mi-a functionat fara sa emita vreo eroare... Efectiv parca nu se intampla nimic...<BR>Exemplu de cod concret utilizat :<BR><BR>import xlrd<BR>import line_parser<BR>import line_reader<BR>import db_writer<BR>import sys<BR>import MySQLdb<BR><BR><BR>try:<BR>    conn = MySQLdb.connect (host = "127.0.0.1", user = "root",<BR>                                        passwd = "mysql", db = "rsoc_cspay")<BR>except MySQLdb.Error, e:<BR>    print "Error %d: %s" % (e.args[0], e.args[1])<BR>    sys.exit (1)<BR>#cursor = conn.cursor (MySQLdb.cursors.DictCursor)<BR>cursor = conn.cursor ()<BR>cursor.execute("""CREATE TABLE example9 (id INT,id2 INT);""")<BR>cursor.execute("""INSERT INTO example9 (id,id2) VALUES (234,2142)""")<BR><BR><BR>#cursor.executemany ("""INSERT INTO test (Name,CNP) VALUES (%s,%s)""",[tuple1,tuple2])<BR><BR>cursor.close ()<BR>conn.close()<BR><BR><BR><BR><br /><hr />What can you do with the new Windows Live? <a href='http://www.microsoft.com/windows/windowslive/default.aspx' target='_new'>Find out</a></body>
</html>