i have a user that has a login with a ton of characters, i want to show only 15 characters, and the rest with usernamegoesher...
not sure how to do that. heres my code
$sql = "SELECT user_id, user_name, user_joindate FROM 4images_users WHERE user_level != 1 ORDER by user_joindate DESC LIMIT 5";
$result = $site_db->query($sql);
while ($row = $site_db->fetch_array($result)) {
$user_new_member_list .= format_date($config['date_format'], $row['user_joindate']). ' <a href ="'.ROOT_PATH.'member.php?action=showprofile&user_id='.$row['user_id'].'"><b>'.$row['user_name'].'</b></a><br>';
}
and heres the length code.. or an example of it. what do i do to put it in?
$user_name = substr($user_name, 0, 15).((strlen($user_name) > 15) ? "..." : "");