I want to edit an item,[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:11. Please use proper, complete spelling when posting in the forums. AOL Speak, leet speak and other abbreviated wording can confuse those that are trying to help you (or those that you are trying to help). Please keep in mind that there are many people from many countries that use our forums to read, post and learn. They do not always speak English as well as some of us, nor do they know these aberrant abbreviations. Therefore, use as few abbreviations as possible, especially when using such simple words.
Some examples of what not to do are ne1, any1 (anyone); u (you); ur (your or you're); 2 (to too); prolly (probably); afaik (as far as I know); etc.
Structure of the tables is as follows:
Category: ( catid, catname, catdesc )
CategoryRef: ( newid, catid, parentid )
Record is storing as follows:
Category Table:
catid catname catdesc
1 A some text
2 B some text
3 C some text
4 D some text
5 E some text
6 G some text
7 F some text
8 H some text
CategoryRef Table:
newid catid parentid
1 1 0
2 2 1
3 3 2
4 4 3
5 5 2
6 6 0
7 7 1
8 8 6
and so on.................
edit_item.php is as follows:
Category: Here a drop down list (combo box) will [s]b[/s] BE displayed in which all the categories and its subcategories will [s]b[/s] BEdisplayed .
User can see all the categories in the form of a tree, like:
A >> B >>> C >>>> D
A >> B >>> E
A >> F
G >> H
I >> J >> K
L >> M
and so on......
user can see all the tree from root to its n-level category but can select only the last one to use in an item.
Item title: _______
here are the remaining fields will [s]b[/s] BEdisplayed...