double quotes in expression

Paul Scott pscott at UWC.AC.ZA
Thu May 12 13:22:35 EDT 2005


Symbol (12, 1, "ESRI IGL Font20", 1)

The Expression for a string-query starts and ends with double quotes, so
that the whole expression would look like this:

EXPRESSION "Symbol (12, 1, "ESRI IGL Font20", 1)"

You can try using something like addslashes() in PHP or escaping the
quotes manually.

$expression = addslashes(Symbol (12, 1, "ESRI IGL Font20", 1));

or (12,1,\"ESRI IGL Font20\",1)

--Paul



More information about the mapserver-users mailing list