Quote:
$scor[0] will just return the first character, so if the value is "10" it will return "1":
|
Yes.. I was getting exactly the same problem and I also noticed that this was happening with all 2 digit numbers like 10, 11, 12 and so on.
BUT I just figured it out and this WORKED:-
PHP Code:
$scor = explode('-', $result['colscore']);
$score["$scor[0]"] = 'selected="selected"';
I just put
explode and its working perfect. But may I know plz what
explode did, that the list box is now selecting 2 digit numbers.