Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

problem with some php instructions

I have problem with these two lines:

$mn=$mth[$mo];
if ($ny!=1) {$mn=$mn." ".$yr;}

The error message is:
Invalid keyword "mn"

Is it possible to find a solution ?
Thanks.

lee
Friday, August 29, 2003

{{$$}$mn should do it, the embedded {$$} will be stripped out by the cityscript engine.

Lasse Vågsæther Karlsen
Friday, August 29, 2003

I think spacing will solve your problem.

{$variable      is citydesk.

if (condition)
{
  $variable=

is not

Adriaan van den Brand
Friday, August 29, 2003

*  Recent Topics

*  Fog Creek Home