On Fri, May 18, 2001 at 04:32:51PM +0200, Keith Whyman wrote:
> while ($p = mysql_fetch_array($result1)) {
> 
> $msg .= $p["s_bereich_name"];
> $msg .= $p["s_news_text"];
> $msg .= $p["s_users_real_name"];

I'm not sure if this is what you want, but something like this maybe??

<?php
while($p = mysql_fetch_array($result)) {
   if($p["s_bereich_name"] != $oldBereichName) {
      echo $p["s_bereich_name"]."<br>\n";
      $oldBereichName = $p["s_bereich_name"];
   }
   echo $p["s_news_text"]." - ".$p["s_users_real_name"]."<br>\n";
}
?>

-- 
Jason Stechschulte
[EMAIL PROTECTED]
--
If I allowed "next $label" then I'd also have to allow "goto $label",
and I don't think you really want that...  :-)
             -- Larry Wall in <[EMAIL PROTECTED]>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to