Hi, I want to know the code to restrict the dropdown box to a certain number of characters as the data from the db is too big. I want it to display say 50 characters.
Put whatever value you want within the option tag, then limit the text being displayed with substr(), something like:
echo "<option value='$value'>".substr($text, 0, 50)."</option>\n";
Cool, that worked. Thanks