Russ & Cindy Stanger wrote:
>When I try to add a string to the end of an enum list I get the following
>error message:
>
>You have an error in your SQL syntax near '\','Historical
>
>
It looks like you've accidentally added a slash to quote a quote ...
check your code.
However, I'd highly suggest using another table and doing a JOIN when
you're at this size of ENUM and you plan on adding/removing values.
Add standards_topic_id to INT UNSIGNED NOT NULL and create a table:
standards_topics ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, topic_name
VARCHAR(50));
Then insert the values into standards_topics and use a JOIN in your query.
For example ...
SELECT * FROM table
LEFT JOIN standards_topics ON standards_topic_id = standards_topics.id
WHERE .... AND topic_name = "Foundation and Government";
You'll find the values a lot easier to maintain this way.
--
Michael T. Babcock
C.T.O., FibreSpeed Ltd.
http://www.fibrespeed.net/~mbabcock
---------------------------------------------------------------------
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