Help with display length
Posted: Fri Jun 25, 2004 6:29 pm
Can someone help me out with setting the display length for this code:
Basically, three values are being pulled from the DB and used to create a dropdown liast for the user to select. I would only like to display the first 25 characters of each value; how do I do that? Even if the value is less then 25 characters I still want 25 characters to display so there would be blank spaces after the value.
Any help would be appreciated!
Code: Select all
<?php
while ($row_send = mysql_fetch_array($result_send))
{
echo ('<option value="'.$row_send['user_id'].'">'.$row_send['username'].' | '.$row_send['storename'].' | '.$row_send['companyname'].'</option>');
}
?>Any help would be appreciated!