php - Search query containing a variable -



php - Search query containing a variable -

hi working on php mysql project , need help.

on 1 of fields utilize check box come in value. possible options 9001 14001 , 18001.

if tick 14001 , 18001 result gets stored 14001,18001.

when set search have had set if equals each possible combination. ..not bad in case 7.

bit utilize in sql query if wanted if (field) contains?

the next query give line field contains 14001.

select * table field '%14001%'

but might want reconsider way store info create faster. 1 way nicely described here: http://www.phpknowhow.com/mysql/many-to-many-relationships/

php mysql

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -