I am pulling data from the exp_channel_data table. One of the fields contains name data in the format <lastname, firstname>. I need to use this data in a php segment. When I try to use this data it throws errors that I am passing two values to a function that only expects one value or “Use of undefined constant <lastname>”. It is treating the single value as two comma separated values. I don’t understand why this is happening. The value pulled from the db should be treated as a string…not two strings.
How can I avoid this?
I’m using ExpressionEngine v2.5.2 - Build Date: 20120606
Thanks,
Kevin