On Fri, Mar 24, 2006 at 04:19:10PM +, 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.
>
On 24 March 2006 16:40, Alex Major wrote:
> Thanks, works like a charm (had to make is -2 instead of -1
> as it added a
> space after each result). Hadn't thought of something so simple.
>
> On 24/3/06 16:22, "Bastien Koert" <[EMAIL PROTECTED]> wrote:
>
> > Build it up as a string and remove the
Thanks, works like a charm (had to make is -2 instead of -1 as it added a
space after each result). Hadn't thought of something so simple.
Regards,
Alex.
On 24/3/06 16:22, "Bastien Koert" <[EMAIL PROTECTED]> wrote:
> Build it up as a string and remove the trailing comma at the end of the loop
>
Build it up as a string and remove the trailing comma at the end of the loop
do { $sHTML .= ''.$administrators['username'].', ';}
while ($administrators = mysql_fetch_assoc($administrators_result))
$sHTML = substr($sHTML, 0, strlen($sHTML)-1);
echo $sHTML;
?>
Bastien
From: Alex Major <[EM