Hi I've got the following SQL statement for a MySQL database:
SELECT * FROM gd_records WHERE FIND_IN_SET('$value',$field) What I want to know is how do I replace $value with a number of the position of the SET field? Ugh, I'll try and explain this more clearly. I've got the following as the SET field: SET('Wales','North','South'); I know how to do a FIND_IN_SET for 'Wales'. However I need to know how to do this if the column names are unknown. i.e. I want to access 'Wales' through it's position number - 1 (or is it 0 like perl?). Thanks for any information you can give me. Rgds Wiliam Stephens Web Developer http://www.fbagroup.co.uk --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php