Jump to content

Archived

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

rshadarack

MySql get possible set values

Recommended Posts

I have a set column in a table in mysql.  I wish to get a list (preferably some sort of array, but I could parse a list of text as well) of possible entries for that set.  What is the query to do so?

Share this post


Link to post
Share on other sites
[code]$query = "SELECT column_name from table_name";
$result = mysql_query($query);
....
[/code]

Share this post


Link to post
Share on other sites
To be honest, I've never used that column type, but I assume it comes back comma-separated?

Share this post


Link to post
Share on other sites

×

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.