My PROBLEM:
i have a single table where i need to determine if 3 separate columns within that table might contain a single id#.
in other words, i need to verify the true or false existence of a particular piece of data from every row of all three separate fields (columns), each contained within the same table.
So FAR, FAILURE:
i have searched http://dev.mysql.com/doc/refman/5.0/en and http://www.php.net/manual/en/ but my failure to find what i need thus far really comes down to my lack of knowledge of many MySQL functions other than SELECT, INSERT, and UPDATE.
i thought i might have been onto something looking at MySQL subqueries, but i'm really unsure-- and are subqueries only supported in MysQL 5? i'm using 4.1. i'm testing, but no luck yet.
if you can tell me which PHP function and / or MySQL function i'm looking for, i can most likely get it from there. i figure this is a fairly common need in an application...?
SUPPLEMENTAL COMMENTARY:
incidentally, some of those fields / rows (cells?) hold duplicate entries as they are the id #'s of artists in my concert event scheduler.
so, just like squares and rectangles...
every field and row entry contains an id referencing an artist, but not every artist is referenced therein. i need to check an artist ID against those table fields so i can use IF logic to determine whether i tell my user that the artist has concerts, or that the artist isn't scheduled for any performances.
man, every time i come here, i feel like i've "given up" on my own research. i don't mean to misuse this forum! It's difficult to stay away when i know such help is within reach. thanks!