This topic is locked

Parse error with concat(... custom lookup

3/17/2006 9:26:48 AM
PHPRunner General questions
S
sloftus author

I've successfully used concat(`field1`," text ",`field2`) in creating a custom drop down display field. However I get the following error in the page display...
Parse error: parse error in C:\mydirectory\include\mypage_functions.php on line 629
If I revert back to a single field display in the drop down the page works. Is there a little bug here??

D
Dale 3/17/2006

From the sample it looks like you have a formating error.
concat(`field1`," text ",`field2`)
concat(field1,'text',field2)
No need to `` real fields.

S
sloftus author 3/23/2006

You're right but if you have field names with spaces then you need to have encase them in `. BUT, after experimenting further I now know what the problem is. I used double quotes " around the text instead of single quotes ' as per your example (and the example shown in the PHPRunner Display Customer Expression dialog box)
Problem solved thanks.