PHP/MySQL - checking against field values

I need some help.

The script I’m working on queries a table in MySQL. It will have say field A, B & C. I need to run through the entire column of field C, and gather the values of each row.

I need to do this so I can prevent a duplicate value from being added to that column.

How can I output that array to check against a value that is being posted?