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

java Multi query from Mysql using netbeans -

c# - DotNetZip fails with "stream does not support seek operations" -

c++ - StartServiceCtrlDispatcher don't can access 1063 error -