By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,730 Members | 1,546 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,730 IT Pros & Developers. It's quick & easy.

Retrieving data from database and mail them

P: n/a
Hi,

I am looking for a solutions for the following problem,
I need to access at database from within a website, from where I can
retrive a specific document in the database and mailing it to someone
else. Of course I cut crab the document from the database and save it on
my harddrive, and then send it. But this process don't fit into our
busy days.

I thought that javascript might be an idea?

Can anyone help?
Jul 23 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Jari Dolberg" <ja*********@hotmail.com> skrev i meddelandet
news:41*********************@dread11.news.tele.dk. ..
Hi,

I am looking for a solutions for the following problem,
I need to access at database from within a website, from where I can
retrive a specific document in the database and mailing it to someone
else. Of course I cut crab the document from the database and save it on
my harddrive, and then send it. But this process don't fit into our
busy days.

I thought that javascript might be an idea?

Can anyone help?


There is no Javascript-intrinsic, cross-browser database connectivity
mechanism (though very possibly some technology that is IE-only). However,
client-side you might find the "new Image()" technique useful, like so:

var newImage = new Image();
newImage.src =
"ma*********************************************** ******@somewhere.com.

This would have the effect of triggering a server-side page (PHP in this
case), which can harvest the query string, contact the database, retrieve
the data, format it and email it. Depending on the complexity of the
database interaction, I'd say this might take maybe 20 lines of server-side
PHP code.

Joakim Braun
Jul 23 '05 #2

P: n/a
On 8/9/04 7:18 pm, Joakim Braun wrote:
However,
client-side you might find the "new Image()" technique useful, like so:

var newImage = new Image();
newImage.src =
"ma*********************************************** ******@somewhere.com.


Good grief, don't put anything like that on your web pages. Not unless you
want a bunch of bored teenagers emailing your database all over the place.

--
Philip Ronan
ph***********@virgin.net
(Please remove the "z"s if replying by email)
Jul 23 '05 #3

P: n/a
"Philip Ronan" <ph***********@virgin.net> skrev i meddelandet
news:BD6510A7.20D45%ph***********@virgin.net...
On 8/9/04 7:18 pm, Joakim Braun wrote:
However,
client-side you might find the "new Image()" technique useful, like so:

var newImage = new Image();
newImage.src =
"ma*********************************************** ******@somewhere.com.


Good grief, don't put anything like that on your web pages. Not unless you
want a bunch of bored teenagers emailing your database all over the place.

--
Philip Ronan
ph***********@virgin.net
(Please remove the "z"s if replying by email)


Well, demo code doesn't preclude some additional application of brains for
real-world deployment.

Joakim Braun
Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.