A Few CMSB Errors

4 posts by 2 authors in: Forums > CMS Builder
Last Post: October 3, 2013   (RSS)

Hi Perch,

Could you post or attach your code that is causing the first error for me? 

The second error is most likely happening because the $record['recordCategory'] doesn't contain a numeric value. What happens if you use the showme function to display the recordCategory contents? 

showme($record['recordCategory']); 

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com

Hi, Greg -

The $record['recordCategory'] does contain a numeric value - but the spaces around it are turning it into a string.

When I run:

showme($record['recordCategory']);

It shows this in the code:

<xmp> 5 </xmp>

:0/

Perch

If the result is tab separated, I guess you're using a multi item select list field? Could the issue be that some items have more than one category selected, so the trim value ends up being something like this:

<xmp>5    6</xmp>

This would also explain why it sometimes works, as items with one item checked would trim down to a numeric value. 

Cheers

Greg

Greg Thomas







PHP Programmer - interactivetools.com