知道哪个列有结果

I have a big database (13K registers, with 100 columns).I use a live search script, to extract results.

It's a networking database, with IP ranges, DSL numbers, some Circuit_ID etc.

Also, Indeed the whole result, I want to know which column has the result the user is typing.

Which command in PHP could let me get the name of that column?

Get all rows, compare each row and get the col index no. of the match. USe Brute FOrce !!