Whenever I modify a record in the database, the category defaults to ---- (blank). Is there a way to prevent it from doing that? Thanks.
Jan 15, 2001, 9:21 PM
Veteran (17240 posts)
Jan 15, 2001, 9:21 PM
Post #2 of 5
Views: 3190
You should use the following codes in the sub html_record_form routine:
|; print &build_select_field("Category", "$rec{'Category'}"); print qq|
And since you have changed CATEGORY names in your default.cfg file, you probably did not update the default.db file, which means that the select field cannot find the category names.
Good luck!
Regards,
Eliot Lee
Code:
|; print &build_select_field("Category", "$rec{'Category'}"); print qq|
And since you have changed CATEGORY names in your default.cfg file, you probably did not update the default.db file, which means that the select field cannot find the category names.
Good luck!
Regards,
Eliot Lee
Jan 15, 2001, 10:19 PM
Veteran / Moderator (3034 posts)
Jan 15, 2001, 10:19 PM
Post #3 of 5
Views: 3194
Not sure if this could also be your problem, but be sure you do not have spaces between your category options.
it should look something like this:
option1,option2,option3
You can always add new categories without having to make changes in the database itself (the choices would not have been made for that category). But if you left a space between those you added, this would cause problems.
Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
it should look something like this:
option1,option2,option3
You can always add new categories without having to make changes in the database itself (the choices would not have been made for that category). But if you left a space between those you added, this would cause problems.
Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/