<DIV>
<DIV>hello eric, <BR></DIV>
<DIV>Im getting this error: </DIV>
<DIV>[error] [client 127.0.0.1] malformed header from script. Bad<BR>header=*** You don't have the (right): c:/program files/apache<BR>group/apache/cgi-bin/fig28_18.py<BR><BR>I have connected all databases already. If I remove the import MySQL<BR>statement, theres no problem. But i need to use the database. . what<BR>could possibly be wrong??? <BR><BR>pls help.. I have the MySQLdb installed in my Python directory<BR>already..<BR><BR><BR>#!c:\Python23\python.exe<BR><BR>import cgi<BR>import MySQLdb<BR><BR><BR>def printContent():<BR> print "Content-type: text/html\n\n"<BR> print <BR> print """<BR><html xmlns = "<A href="http://www.w3.org/1999/xhtml" target=_blank>http://www.w3.org/1999/xhtml</A>" xml:lang="en"<BR> lang="en"><BR> <head><title>Registration results</title></head><BR> <BR> <BR>def printReply():<BR> from convert import genPrime,
genPrimeE<BR> p1 = genPrime()<BR> q1 = genPrime() <BR> e1 = genPrimeE()<BR> N1 = p1 * q1<BR> M1 = (p1-1)*(q1-1)<BR> print 'e1 %d, m1 %d' %(e1,M1)<BR> <BR> while(e1 % M1 == 0):<BR> e1 = genPrimeE()<BR><BR> connection = MySQLdb.connect( db = "try" )<BR> <BR> cursor = connection.cursor()<BR> cursor.execute("insert into trials (p,q,n,m) values<BR>('p1','q1','n1','m1');")<BR> authorList = cursor.fetchall()<BR> cursor.close() # close cursor<BR> connection.close() <BR><BR><BR>printContent()<BR>form = cgi.FieldStorage()<BR><BR>personInfo = { 'firstName' : form[ "firstname"
].value,<BR> 'lastName' : form[ "lastname" ].value,<BR> 'email' : form[ "email" ].value,<BR> 'phone' : form[ "phone" ].value,<BR> 'book' : form[ "book" ].value,<BR> 'os' : form[ "os" ].value, <BR> 'message' : form["message"].value }<BR>printReply()</DIV>
<DIV><BR><B><I>Eric Wichterich <eric.wichterich@gmx.de></I></B> wrote: </DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Hi Kiran,<BR><BR>could you post the exact error entry from your error_log, please?<BR><BR>Cheers,<BR>Eric<BR><BR><BR>Am Montag, 03.11.03 um 06:18 Uhr schrieb Kiran Budhrani:<BR><BR>> Hi eric, I havent solved my problem... do u have any suggestions?<BR>> what could possibly be wrong.. Im using Apache as my server and the <BR>> error appears in the error log.<BR>> <BR>> pls help.. thanks! =)<BR>><BR>> Eric Wichterich <ERIC.WICHTERICH@GMX.DE>wrote:<BR>><BR>> Hello Kiran,<BR>><BR>> just wanted to ask whether your problem is already solved (if found not<BR>> further postings to this thread).<BR>><BR>> Greetings,<BR>> Eric<BR><BR><IMAGE.TIFF></BLOCKQUOTE></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
Exclusive Video Premiere - <a href="http://launch.yahoo.com/video/?1093432&fs=1&redirectURL=http://launch.yahoo.com/promos/britneyspears/">Britney Spears</a>