/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// grab possible SET/ENUM values and return an array function getPossibleValues($table,$field){ $query = "SHOW COLUMNS FROM `$table` LIKE '$field'"; { return $options; } else { return false; } }
URL: http://www.jellyandcustard.com/2005/11/23/retrieve-valid-entries-for-a-mysql-enumset-column/