Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- PhP character comparison problem...
July 10, 2008, 10:23 pm
rate this thread
database. I pull the query data from the MySql database (using PhP)
and I know it is returning the correct rows because I have verified
it by printing it out in Firefox.
When I try this:
if( substr($PhrasesRow, 0, 1) =3D "=BF" || substr($PhrasesRow, 0,
1) =3D "=A1" )
if( mb_substr($PhrasesString, 0, 1) =3D "=BF" || mb_
substr($PhrasesString, 0, 1) =3D "=A1" )
it never makes it into the 'if' block even though I have verified
there are phrases that meet this criteria.
Does anyone have a suggestion on how to get it to recognize that these
phrases start with '=BF' or '=A1' ?
Thanks for your ideas,