Re: what is wrong with my php code?

From: Date: Mon, 03 May 2004 17:48:24 +0000
Subject: Re: what is wrong with my php code?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-185219@lists.php.net to get a copy of this message
msa wrote:
it was also suggested to me that I add semicolons to the end of the "while" and "if" lines:
Sometimes it's best not to take suggestions.
from: while($rsArchives = mysql_fetch_array($result))
            {
                  // Compare old value to new value and display column only
if they do not match
                  if ($rsArchives['DEPARTMENT'] != $duplicate)
                  {
      ?>
to while($rsArchives = mysql_fetch_array($result));
            {
                  // Compare old value to new value and display column only
if they do not match
                  if ($rsArchives['DEPARTMENT'] != $duplicate);
                  {
      ?>
that led to this error: Parse error: parse error in /home/u5/jpike/html/newsArchives4.php on line 110
As expected. -- John C. Nichel KegWorks.com 716.856.9675 john@kegworks.com

« previous php.general (#185219) next »