onthespot Posted July 17, 2009 Share Posted July 17, 2009 Hey guys. I have a news page on my site. The problem I have it that the news comment will be longer than 255 characters on some occasions. Is there anyway to extend this? As the maximum I can hold is 255 at the moment. Thanks Link to comment https://forums.phpfreaks.com/topic/166305-solved-255-varchar/ Share on other sites More sharing options...
trq Posted July 17, 2009 Share Posted July 17, 2009 Change your database field type to TEXT. Link to comment https://forums.phpfreaks.com/topic/166305-solved-255-varchar/#findComment-876983 Share on other sites More sharing options...
onthespot Posted July 17, 2009 Author Share Posted July 17, 2009 its that simple? thanks! Link to comment https://forums.phpfreaks.com/topic/166305-solved-255-varchar/#findComment-876984 Share on other sites More sharing options...
trq Posted July 17, 2009 Share Posted July 17, 2009 It could be. You haven't exactly described what is limiting the text to 255 chars. Link to comment https://forums.phpfreaks.com/topic/166305-solved-255-varchar/#findComment-876986 Share on other sites More sharing options...
onthespot Posted July 17, 2009 Author Share Posted July 17, 2009 ok i thought you can only have 255 characters in a varchar, as max. However I just changed it to 2000 without any problems? Link to comment https://forums.phpfreaks.com/topic/166305-solved-255-varchar/#findComment-876989 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.