vrk6 0 Newbie Poster

Hi everyone,
I am getting a error when using Xampp with mod_python addon and another python script
1. First I entered a string in a html form and passed it to pyform.py
2.Now in pyform.py, I imported the entire simpledb.py module.
3.Simpledb.py module fetches data from mysql server. Everything till here is fine.
4.Now after importing simpledb.py from pyform.py, when I try to return the fetched values from mysql server, I get an error which says
" File "C:\xampp\htdocs\test\pyform.py", line 14, in pythonstring
vik = simpledb.result

AttributeError: 'module' object has no attribute 'result' "

I checked that everything else is working fine. Thank you all.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.