im trying to find all the mentions for the matched username (sam) from the database text code with following:
$sql = "select * from tweet where feed like '%@sam%'";
this will return all the rows which user have been mention at.
but now the problem is, it also returns rows with @sam3, @sam-dadf or anything that is after @sam..
how can i limit this, so only specific username shows from the text and not all the matching sams.. following are the text format in the database, that is inserted in feed row.
1. i been out with @sam today, but im
not sure what we should do
2. we head great party today and all the frineds were invited, such as @sam, @jon, @dan...
3. i been out today with @samFan and with @dj. << this row should not get pull from database``