Jump to content

[SOLVED] Long Words Hurt My Site


Recommended Posts

How to I make a function to only allow a word to be 32 letters long? the reason I am doing this is because the ?page= will display the value on the screen as

$page = mysql_real_escape_string(htmlspecialchars($_GET['page']));

so when they use alot of letters it throws the HTML off balance. Is there a way of making it so that if a word is like 45 charactors long only the first 32 will appear?

Link to comment
https://forums.phpfreaks.com/topic/104929-solved-long-words-hurt-my-site/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.