954,525 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Hi need help with error when trying to enter data in

Hi everyone,
I am getting a error when using Xampp with mod_python addon and another python script
Here is what I am trying to do, (I checked that the mysql server and apache server are running and refreshed. Also the config files was done correctly.)
1. First 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.
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 am attaching the files also.
Could somebody point me in the right direction. Thank you everyone.
Also when I dont pass the values thru the html form and instead use command prompt, I have no problems. I am able to get the values from mysql server and am able to output those values in the cmd screen.

Attachments xampp_py.zip (1.04KB)
vrk6
Newbie Poster
2 posts since Mar 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You