Hi,
Am not a very good php/mysql programmer, so I need help to convert GLTags.php to behave like SalesType.php.
REASON: I would like to have the type and size of the field tagref in the tags table changed from tinyint(4) to varchar(6) so that I can have structures of Tags and be able to create new tags by entering the tagref and tagdescription and submitting creates a new tag in the required position in the tags structures. Currently GLTags.php does not allow for user entry of tagref but generates an auto increment number.
So before going into the actual php scripts conversion I would like to know from those more knowledgeable in php/mysql, if the following CREATE TABLE tags statement changes are correct for the purposes stated.
ORIGINAL STATEMENT
*********************
CREATE TABLE `tags` (
`tagref` tinyint(4) NOT NULL AUTO_INCREMENT,
`tagdescription` varchar(50) NOT NULL,
PRIMARY KEY (`tagref`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
CHANGED STATEMENT
**********************
CREATE TABLE `tags` (
`tagref` varchar(6) NOT NULL DEFAULT,
`tagdescription` varchar(50) NOT NULL,
PRIMARY KEY (`tagref`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Any advice greatly appreciated
Thanks in advance.
R2-g
Currently the new GLTags.php screen looks as below but is not fully working