The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
makechoosercode (dropdown) - wanting to take dupes out
I am doing a modified version of makechoosercode, where it gets the entry's in table "dkp_items".
PHP Code:
What happens is this: When someone adds an item into the database, it adds who bought it, item name, date it was bought etc. So, in other words...someone could have bought the item twice or more than one person could have bought the same item. When I am adding this in thru a file, I have a drop down of all items bought (this is where the dupes are), and a field to add a new item. |
#2
|
|||
|
|||
No one?
|
#3
|
|||
|
|||
You could try with a "SELECT DISTINCT......"
|
#4
|
|||
|
|||
Doesnt work because item buyers, values could/will be different. =\
|
#5
|
||||
|
||||
You could try looping through the dropdown array and weed out dupes like that,
something like PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|