php - How to filter values fetched from database on the basic of comma included? -


I have some values ​​in my database in the column, as I have been shown in the picture below,

Enter image details here

Now if you notice there over there In the position of number three, we have the value, which is Italian, pizzeria (pizza), there may be some other values ​​that can be included in the Italian, pizzeria (pizza) like COMMA (,) Yes, as we can see in the picture below,

Now I want to get all the values ​​of php (select * from tablename), but if the value is included in COMMA, then I Any way to filter out? I just want to select values ​​that do not have any commas, thanks in advance? Unless there is a pregate in my knowledge, or an array filter can help.

would not like predicate:

  Choose * Where 'Business' food is not like '%,%' from the tablet name;    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -