i have a problem. i want to read some data from the database and write it 
on to a page to show in the browser and i am having some trouble.  im using 
node-mysql. i can write it succesfully in the console line but when i put 
the same code in a function and export it and call it in the other file it 
does not work. lets say i have one index.js where i want to show data in 
html and antoher file mysqldb.js where the functions for the database are. 
could someone please write me a small example i would be gratefull. thanks 
in advance!

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to