What I personally would do is do a query something like:
$query = "select * from db where keywords_table like %".$searchterm;
$grabinfo = mysql_query($query);
$result_num = mysql_num_rows($grabinfo);
$grabinfo = mysql_fetch_array($grabinfo);
And then a for loop to list all the different info in each row, using array elements such as $grabinfo["tablename1"] etc.
Using the above code, you would be able to check the $result_num variable to run the for loop only for as many results as you receive on your search. Remember if the column you are reading from is going to be using special chars (such as \ and ' ) you will want to do a stripslashes();.
I hope that's what you meant, but if not, or if you need more help, let me know.