|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
hello-
i'm working on a script which a monthly newsletter can be sent from the browser to all of the users which selected to get the newsletter when they registered (database table named 'newsletter' with a value of either 'Yes' or 'No')...i have no clue how to get the info from the db in comma-like form...so that it includes the address like "foo1@bar.com, f00foo@bar-bie.com, foo223@bar.com" ETC., but not having the last address have a comma after it. how could i use the while loop (im guessing) to do this? thanks!
__________________
-Alexander Last edited by Vasarab69 : February 11th, 2003 at 10:04 PM. |
|
#2
|
|||
|
|||
|
Alexander,
Using the rtrim function will do the trick. ![]() Depends how you extract the records from your database, but I'm thinking of something looking like this: PHP Code:
Regards, Arjon |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > correct usage of the while loop...need help please |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|