Hi!
I don't know exactly what you're looking for, but sounds to me you want to search through a mysql table.
In this topic you'll find the Search package, which lets you search through any data. You could retrieve the records from the database and then use that to actually search through them.