<DIV id=RTEContent> <DIV id=RTEContent> Hi ,<BR>> here i am comparing both the values of form value and table <BR>value.<BR>> But it will not work . The result will be print "not equal". Table <BR>values<BR>> are retrieved fine. Here what mistake i did. No compilation error and <BR>run<BR>> time error. Please solve this problem.<BR>> <BR>> Code Snippet :<BR>> <BR>> req = self.request()<BR>> pid = int(req.field('pid'))<BR>> self.writeln(pid)<BR>> <BR>> dbconnection = cx_Oracle.connect("myusername", <BR>"mypassword",<BR>>
"mydatabase")<BR>> cursor = dbconnection.cursor()<BR>> cursor.arraysize = 50<BR>> cursor.execute("SELECT PID FROM PERSONALDETAILS order by <BR>pid")<BR>> for PID in cursor.fetchall():<BR>> # Comparing here both formvalue and table value ( both <BR>are<BR>> numeric) <BR>> if pid==PID:<BR>>
self.writeln("Equal")<BR>> else:<BR>> self.writeln("Not Equal")<BR>> <BR>> Thank you<BR>> Python_Eager<BR></DIV></DIV><p>
                <hr size=1>Bring words and photos together (easily) with<br>
<a href="http://us.rd.yahoo.com/mail_us/taglines/PMHM3/*http://photomail.mail.yahoo.com">PhotoMail </a> - it's free and works with Yahoo! Mail.