Followup on extracting information from a text field and inserting it into another field

5 posts by 2 authors in: Forums > CMS Builder
Last Post: November 29, 2013   (RSS)

By Daryl - November 28, 2013

Hi Jerry,

Your function still returning an array even if it didn't find the word "free". 

Can you please try replacing 

if ($record['membership_level'] || @$allLevel == '' ) { continue; }

with

if ($record['membership_level'] || !$allLevel ) { continue; }

Let me know if that works for you.

Thanks,

Daryl Maximo
PHP Programmer - interactivetools.com

Thank you Daryl,

I'm in the middle of our families annual Turkey devouring ritual, but I'll jump on this first thing tomorrow and let you know what happens.

I have a feeling you're much too modest and that your suggestion will work superbly.

Best,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Hi Daryl,

That small change seems to have made all the difference.

More testing required so I don't mess anything else up, but  I think it's a winner.

Thanks again,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Perfect Solution!!

Thank you again.

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php