The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
|||
|
|||
What is the value of $result['colscore']?
|
#22
|
||||
|
||||
any integer between 1 to 10. But when 10 is the value, it doesn't select in list box !
|
#23
|
||||
|
||||
Is that value "10" when it's meant to be "10"?
|
#24
|
||||
|
||||
YES... sure !
I told in my second last post that 10 displays fine when using text-field BUT does not select through list box. |
#25
|
|||
|
|||
Then what are you trying with:
PHP Code:
PHP Code:
|
#26
|
||||
|
||||
Quote:
BUT I just figured it out and this WORKED:- PHP Code:
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. |
#27
|
||||
|
||||
An explode makes $result['colscore'] an array, since it is the first and only element, it is assigned the ID of 0. You know you could just have done this:
PHP Code:
|
#28
|
||||
|
||||
I have a similar problem again but this time related to retrieving text values in select box.
I have this in template:- HTML Code:
<select name="category" size="1" id="category"> <option value="Arts and Literature">Arts and Literature</option> <option value="Blogs and Personal">Blogs and Personal</option> <option value="Cartoon and Animations">Cartoon and Animations</option> <option value="Technology">Technology</option> </select> Suppose, the value in the database is Technology, How do I retrieve it automatically selected in the select box. Thank you |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|