dougal85 you are correct, it is missing a double quotation mark, but that was a typo, not my problem, thanks.
$query = "select * from $ttable where $ffield like \"%$clean%\"";
what results are being returned?
When they enter 'b' you want all the records or only the first record?
If you can clear that up, i'll be able to help more.
example database employees, with field called name.
name
billy
sean
mike
sue
brian
curly
moe
brad
if the user input billy, my search result return, billy, brian, and brad.
The desire output should be all occurrences of the search term. example, user input "brian", so the search result should be "brian" and if brian is in the database more than one time then also return all occurrences.
Thanks