473,320 Members | 1,580 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Retrieving data from database and mail them

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
3 1444
"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
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: aniket_sp | last post by:
i am using a data adapter and a dataset for filling and retrieving data into .mdb database. following is the code..... for the form load event Dim dc(0) As DataColumn Try If...
3
by: Jakob Petersen | last post by:
Hi, I need to increase the speed when retrieving data from a hosted SQL Server into VBA. I'm using simple SELECT statements. How important is the speed of my Internet connection? (I have...
0
by: DC01 | last post by:
I have added a new measure successfully into the normal cube. I then add it to the virtual cube and reprocess all cubes. I can browse the normal cube successfully. Then when I try and browse the...
1
by: hanusoft | last post by:
This is an example of Inserting and Retrieving data from xml file. private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here ...
1
by: hanusoft | last post by:
This is an example of Inserting and Retrieving data from xml file. private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here ...
4
by: smartin | last post by:
Hi, I'm having problem retrieving data from an SQL stored procedure. I tried debugging but it wont give a the reason for the error. it just throws an exception after executing cmd.ExecuteNonQuery...
2
by: sangam56 | last post by:
Hi all asp.net 2.0 users, I want to send the mail to the users of my system when there is any changes in the database or when i assign any user to the project giving them the information about the...
3
ADezii
by: ADezii | last post by:
Last Tip, we demonstrated the technique for retrieving data from a DAO Recordset, and placing it into a 2-dimensional Array using the GetRows() Method. This week, we will cover the same exact Method...
10
vikas1111
by: vikas1111 | last post by:
Hi All Can anyone give me an idea to solve the problem.. My Problem is ,, I want to Retrieving data from database and displaying in textbox... If anybody have link of some good tutorial on...
7
by: splendid9 | last post by:
Problem in retrieving data from a XML file.......this is my code- protected void Page_Load(object sender, EventArgs e) { DataSet ds = new DataSet(); ...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.