Looping mysql selection for email

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joe

    Looping mysql selection for email

    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.

  • Geoff Berrow

    #2
    Re: Looping mysql selection for email

    I noticed that Message-ID: <BBA06530.19DAE %jshockey@vbe.c om> from Joe
    contained the following:
    [color=blue]
    > I¹m not too swift with php ... would this be a simple
    >script to code?[/color]

    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/

    Comment

    • Matthias Esken

      #3
      Re: Looping mysql selection for email

      Joe <jshockey@vbe.c om> schrieb:
      [color=blue]
      > 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?[/color]

      Just to give you the idea:

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

      Regards,
      Matthias

      Comment

      • Joe

        #4
        Re: Looping mysql selection for email

        Thanks Matthias. Looks pretty simple.

        in article blfjs2.1mg.1@us enet.esken.de, Matthias Esken at
        muelleimer2003n ospam@usenetver waltung.org wrote on 10/1/03 3:18 PM:
        [color=blue]
        > Joe <jshockey@vbe.c om> schrieb:
        >[color=green]
        >> 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?[/color]
        >
        > Just to give you the idea:
        >
        > while ($record = mysql_fetch_arr ay($RESOURCE)) {
        > $field = $record['FIELDNAME'];
        > ...
        > }
        >
        > Regards,
        > Matthias[/color]

        Comment

        Working...