Gracefully handle when FAQ has more than max characters

Please report bugs here!

Moderator: Thorsten

Post Reply
kballard
Posts: 35
Joined: Fri Aug 20, 2010 11:45 pm

Gracefully handle when FAQ has more than max characters

Post by kballard »

If you enter a FAQ with more characters than are allowed, then save the FAQ, the system will just delete all characters over the maximum. For example, if the max # is 2000, and you save a FAQ with 3000 characters, it will cut off the last 1000 characters without warning you.

The system should warn you when you save that you have more than the max characters, and let you know that any over the max will be removed. Then you can cancel the save, copy out the excess characters, and put them into another FAQ, without having to remember what you'd typed and trying to recreate it.

Thanks
Thorsten
Posts: 15562
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Gracefully handle when FAQ has more than max characters

Post by Thorsten »

Hi,

the FAQs can have 4 billion characters on MySQL. Isn't it enough?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
kballard
Posts: 35
Joined: Fri Aug 20, 2010 11:45 pm

Re: Gracefully handle when FAQ has more than max characters

Post by kballard »

That's definitely enough. I'm sorry that I misspoke. I was thinking of the character limit in MS SQL, per this issue:
viewtopic.php?f=2&t=10665

The request is that, if someone enters more characters than are currently allowed on MS SQL, a message appear stating the extra characters will be removed if they save.

Thanks.
Thorsten
Posts: 15562
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Gracefully handle when FAQ has more than max characters

Post by Thorsten »

Hi,

ah, okay... but this is an issue for MS SQL user in their PHP configuration... I don't know if it's even possible to get this value.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply