RE: can't find the parser error

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

 



You missed a semi-colon.......


<?php

print "<p>You want to add an event called
       <b>{$_POST['name']}</b> which takes place on: <br />";


if (is_array ($_POST['weekdays'])) {

   foreach ($_POST['weekdays'] as $day) {
   print "$day";   // <-------here

}
}
 
else {

   print 'Please select at least one weekday for this event!';

}

print '</p>';

?> 



-----Original Message-----
From: Support [mailto:support@xxxxxxxxxxxxxx] 
Sent: Thursday, 4 August 2005 3:47 PM
To: Dean Maunder
Subject: Re:  can't find the parser error

Thanks Dean,

Here is the parse error...but when i attempt to correct it, the parse
error seems to jump down to the next command line.

Parse error: parse error, unexpected '}'
------snip

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux