> -----Original Message-----
> From: CÚsar Aracena [mailto:[EMAIL PROTECTED]]
> Sent: 15 July 2002 03:04

> This is what I have so far:
>  
> for ($m=0; $m<$num_rows2; $m++)
> {
> $row2 = mysql_fetch_array($result2);
>  
> echo $row2[devlanguage];
>  
> if ($m < $num_rows2)
> {
> echo ", ";
> }
> else
> {
> echo ".";
> }
> }

My approach to this is like this:

   for ($m=0; $m<$num_rows2; $m++)
   {
      $row2 = mysql_fetch_array($result2);

      if ($m>0) echo ', ';
      echo $row2[devlanguage];
   }
   echo '.';

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

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

Reply via email to