Well if you are storing it as a string like that, I'd explode the string, and then search through it with a while() or something...
PHP Code:
$id=0;
$temp = explode(" ", $fullstring);
while ($search = fetch_array($temp)){
// check values with $search[$id]
$id++;
}
I could probably go a little more in depth for the searching part... if this is really the way you'd want to do it, which I'm not too sure about. I'm not exactly the cleanest coder out there...
I'd assume you want to compare if it was == to a value that you store in another var.