|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
The Web Buyer's Guide is your best source for white papers on a wide range of IT products and services. This Week's Featured White Papers: Protecting Web Applications from Attack and Misuse by Citrix Systems
|
|
#1
|
|||
|
|||
|
Could you help me with this mysql-search problem.
I have tried everything and i still haven't find an answer for it. I want to make a little search witch counts query from a column. For example if have a table like: +----+-----------------------+ | id | string | +----+-----------------------+ | 1 | file test test array | | 2 | test test test test | | 3 | find search test | | 4 | empty set | +----+-----------------------+ Let say I have a form with one field, named "query". How can i make mysql-query count that "query" from column "string"? I don't know if you got already my point but if i put it this way. I use that same table here and i'd like to search it with querystring "test". I should give me result like this: +----+--------+ | id | count | +----+--------+ | 1 | 2 | | 2 | 3 | | 3 | 1 | | 4 | 0 | +----+--------+ So it just counts that word "test" from that column "string". I think this is quite easy but I haven't found any answer for this problem. I would love to have any help for this! Thanks!! ------------------ .bugi |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > MySQL-query |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|