Re: Displaying results from a query properly.

From: Date: Mon, 27 Mar 2006 19:09:41 +0000
Subject: Re: Displaying results from a query properly.
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-41611@lists.php.net to get a copy of this message
On Fri, Mar 24, 2006 at 04:19:10PM +0000, Alex Major wrote: > Hi there. > This isn't a major problem, more of a matter of aesthetics. > Basically, I have a query which pulls a list of usernames from the database > (based on their user level). > > These users should then listed in this fashion. > > Administrators: allydm, alex, mike, dave > Moderators: big 'd', frank, william > > However, the loop that I have returns the results like this... > > Administrators: allydm, alex, mike, dave, > Moderators: big 'd', frank, william, As an alternative to what the others have said you could use trim() also. Specifically the second, and optional, parameter. http://www.us2.php.net/trim --Greg

« previous php.db (#41611) next »