Jump to content

Query comma seperated field


deezy

Recommended Posts

Hi.

 

There are values in my database stored like so:

 

+----------+

|    num    |

+----------+

|2,4,8,9,11 |

 

A dropdown on my webpage contains a list of numbers. Is it possible to query the database to return all rows that contain one of the numbers in the 'num' field even though they are separated by commas?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/107769-query-comma-seperated-field/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.