function to search all fields in a mysql table

I'm just wondering if anybody already has this done.. Basically it should check all find all the fields in a table for LIKE %...%

To do this it needs to detect each of the fields then make a mysql query with a bunch of 'OR's.. Anyhow greens to anybody who pastes it in here..

Poster :