Re: Displaying results from a query properly.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux