Hello world,
I have a DB in mysql, and want to create a code that will select all this DB data ( there are 10 records) and send it via email (created send email in php).
Anyone have a such example please ?Could you help me =?
Thanks in advance.
Send data via email
Moderator: General Moderators
Re: Send data via email
There are lots of examples on google.
-
Arsench2000
- Forum Commoner
- Posts: 38
- Joined: Sat Sep 15, 2007 8:18 pm
Re: Send data via email
thank for advice, but Ive asked for any example.jackpf wrote:There are lots of examples on google.
have a nice day
Re: Send data via email
Do you know how to connect to mysql in PHP? Pull data, etc? And then use PHP's mail() function to email the data?Arsench2000 wrote:thank for advice, but Ive asked for any example.jackpf wrote:There are lots of examples on google.
have a nice day
This is pretty trivial, a simple Google search would have gotten you examples, as jackpf suggested.
-
Arsench2000
- Forum Commoner
- Posts: 38
- Joined: Sat Sep 15, 2007 8:18 pm
Re: Send data via email
Hello, I know all that u said, but when runing the while loop for gettng all data it send many times the same email, otherwise I have resolved it and now dont need more advices that cant help, why you dont go to work as a politic? there are more blah blah blah and little work, its your place. Dont respond me more please, I cant lose my time to reading your "useful" advices.Mirge wrote:Do you know how to connect to mysql in PHP? Pull data, etc? And then use PHP's mail() function to email the data?Arsench2000 wrote:thank for advice, but Ive asked for any example.jackpf wrote:There are lots of examples on google.
have a nice day
This is pretty trivial, a simple Google search would have gotten you examples, as jackpf suggested.
Re: Send data via email
Well don't post here then.
Re: Send data via email
mail ( "me@mysite.com", "Contact Us Form", "This is an email from your site", "From: you@yoursite.com" )
Re: Send data via email
Oh I understand now. Basically what you want is for me to say "Hey here you go buddy. I've just written your script for you because I don't care if you actually learn anything or not."Arsench2000 wrote:Hello, I know all that u said, but when runing the while loop for gettng all data it send many times the same email, otherwise I have resolved it and now dont need more advices that cant help, why you dont go to work as a politic? there are more blah blah blah and little work, its your place. Dont respond me more please, I cant lose my time to reading your "useful" advices.
Not happening.