Match First Letter of Each Word (MySQL QUERY)

  • Thread starter Thread starter Anonymous
  • Start date Start date
A

Anonymous

Guest
this is displaying all results because of the following statement.

$sqlagg .= " AND gurmukhi LIKE '%".$oneakhar."%'";

if you enter say a g l etc.. then see the statement which is finding the occurance of a g or l
not the first letter thats why it is displaying all the records. and simple all record contains the letters a g or l (if i am right).

regards.
 
Back
Top