473,387 Members | 1,899 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,387 software developers and data experts.

Looping mysql selection for email

Joe
Iıve got a bunch of email addresses in a mysql table. I need a php script
that will loop the results of a SELECT and format them so I can put them in
a php mail() function. Iım not too swift with php ... would this be a simple
script to code? Any help would be appreciated.

Jul 17 '05 #1
3 2234
I noticed that Message-ID: <BB*********************@vbe.com> from Joe
contained the following:
Iım not too swift with php ... would this be a simple
script to code?


Yes. <g>
--
Geoff Berrow
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #2
Joe <js******@vbe.com> schrieb:
Iıve got a bunch of email addresses in a mysql table. I need a php script
that will loop the results of a SELECT and format them so I can put them in
a php mail() function. Iım not too swift with php ... would this be a simple
script to code?


Just to give you the idea:

while ($record = mysql_fetch_array($RESOURCE)) {
$field = $record['FIELDNAME'];
...
}

Regards,
Matthias
Jul 17 '05 #3
Joe
Thanks Matthias. Looks pretty simple.

in article bl**********@usenet.esken.de, Matthias Esken at
mu******************@usenetverwaltung.org wrote on 10/1/03 3:18 PM:
Joe <js******@vbe.com> schrieb:
Iıve got a bunch of email addresses in a mysql table. I need a php script
that will loop the results of a SELECT and format them so I can put them in
a php mail() function. Iım not too swift with php ... would this be a simple
script to code?


Just to give you the idea:

while ($record = mysql_fetch_array($RESOURCE)) {
$field = $record['FIELDNAME'];
...
}

Regards,
Matthias


Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Simon | last post by:
Hi, I am having a little problem with my PHP - MySQl code, I have two tables (shown below) and I am trying populate a template page with data from both. <disclaimer>Now I would like to say my...
8
by: kaptain kernel | last post by:
i've got a while loop thats iterating through a text file and pumping the contents into a database. the file is quite large (over 150mb). the looping causes my CPU load to race up to 100 per...
6
by: Jaime Andres Aranguren Cardona | last post by:
Hi, I created mysql table with one index column, with AUTO_INCREMENT feature. (and the other columns too: Nombre, Apellidos, email, Direccion, Ciudad, Pais) In my code, I have: // Take dat...
3
by: bellefy | last post by:
Hi All, I have a fairly large table with approx 30K rows that updates every night via a cron script that automatically downloads the 2 new csv's. The problem is the files are downloaded from...
5
by: Karen | last post by:
Most my experience has been with MySQL, so I write queries in terms of SQL statements. I am using access right now as it is on the machine I have. I am using the SQL window as I couldn't figure out...
1
by: assgar | last post by:
Hello I have changed the process code abit so it receives the data from the form and ensures the data in array format. This has eliminated my previous error. The problem I am experiencing...
3
by: richie9648 | last post by:
Hi All I have created a macro which turns reports done by users into a format that is needed by me. The good this is that all the reports are in the same format. However my question is around...
10
by: afromanam | last post by:
Regards, Please help What I'm trying to do is this: (and I can't use reports since I must export to Excel) I export some queries to different tabs in an excel workbook I then loop through...
0
by: vjayis | last post by:
Hi i got an error while my site gets loaded Warning: mysql_query() : Unable to save result set in /path../includes/mysql.class.php on line 39 Error in Selection MySQL client ran out of memory...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.