PHP Query Issue No Results

I have a simple Queery
SELECT * FROM data WHERE field_one = 'Data';

Open in new window

I have Six (6) entries in my DB with the entry Data and when I run that query, it says there are no results.
When I run:
SELECT * FROM data WHERE field_one = 'More Data';

Open in new window

I have 10 entries with "More Data" in the field and it says there are only  7 results.
Why would the query not return all of the results?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Peos JohnPHPCommented:
If you are running this query using php code, then you can try mysql_escape_string function for the variable. And if you are running this query directly on mysql you can check for the spaces in the text and rows of the field.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rgranlundAuthor Commented:
I have checked for spaces.  when I run:
SELECT * FROM data WHERE field_one != '';

Open in new window

It returns everything, so I'm perplexed.
Brian TaoSenior Business Solutions ConsultantCommented:
Please run
SELECT * FROM data WHERE field_one LIKE '%ata%';

Open in new window

and post the result here.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.