close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

I want to filter a recordset by a deabasket variable

Thread began 1/03/2014 6:29 am by John Langer | Last modified 1/09/2014 1:00 pm by John Langer | 861 views | 13 replies

John LangerBeta Tester

Hi Jason,
Yes that works of a fashion. In as much as it turns all the email addresses related to each course into an array( fred@mail.com, ginger@mail.com)

But if I take that array out of the loop (as I would have to to get it inti the BCC field of the email) then it only displays the last group of emails.

That is the rwesult of the code so far gives

Course One
Email 1
Email2
Email3

Course Two
Email3
Email4

Course Three
Email2
Email4

Course four
Email1
Email3

Result from array= Email1, Email3

It only gives the emails from the last course listed in this case Course Four

This is the code for that
<?php $emails = "";?>
<?php do { ?>
Teachers email: <?php echo $row_rsTeachersEmail['UserEmail']; ?><br>
<?php $emails .= $row_rsTeachersEmail['UserEmail'].","; ?>
<?php } while ($row_rsTeachersEmail = mysql_fetch_assoc($rsTeachersEmail)); ?>

Print Variable: <?php echo $emails ?><br>

If I put the Print Variable: <?php echo $emails ?><br> Into the code then it Prints them all OK but the array in the email would be outside the loop wouldn't it?

Hope I've made that clear.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...