you should have to use LONGBLOB datatype for your description.
This will help you in update query. and you don't have to define any length in LONGBLOB datatype,
it will work fine and display your description with normal fetch method.
jogesh_p
Junior Poster in Training
68 posts since Sep 2010
Reputation Points: 16
Solved Threads: 6
hi Tom, here is an example for LONGBLOB with syntax
CREATE TABLE `test`.`check` (
`description` LONGBLOB NOT NULL
) ENGINE = InnoDB;
these syntax for LONGTEXT
CREATE TABLE `test`.`check` (
`description` LONGTEXT NOT NULL
) ENGINE = InnoDB;
actually the length of VARCHAR is 0 to 255, it will not display more than 255, and it doesn't matter that other fields are set VARCHAR, cause the database contain any datatype in mean time, like ID as INT, NAME as VARCHAR, and DISCRIPTION as LONGBLOB but the difference is if you want to see the value direct in phpmyadmin the you will not see that LONGBLOB value, just see its size in bytes and i don't think so its a huge matter to see in phpmyadmin.
hopefully it help you to understand :)
take care
jogesh_p
Junior Poster in Training
68 posts since Sep 2010
Reputation Points: 16
Solved Threads: 6