What i would like to do is make php count the characters in a table field and if there are more than the maximum is set to just echo X characters and ... at the end. I would like to do this to avoid the problem i am having: www.vgcity.com
See if a name is too long it messed the table up.
Any help? Thanks!
Easy, just do the following:
$x=24; if (strlen($str)>$x) { print substr($str,0,$x)."..."; } else { print $str; }
Thanks, that worked. 🙂