[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ic] Creating a Unique Search List


Hi,

I'm trying to create a drop-down list that contains the only unique values
stored in the 'vendor' field (in the products table) for use on the advanced
search form, etc.

=================================================================
[loop search="
    fi=products
    st=db
    ra=yes
    ml=100
    tf=vendor
    to=x
    "
    option=vendor]

    [on-match]<SELECT NAME=vendor>[/on-match]
    [list]
    <OPTION VALUE="[loop-code]">[loop-pos 1]
    [/list]
    [on-match]</SELECT>[/on-match]
    [no-match]<INPUT NAME=vendor VALUE="[value vendor]" SIZE=20>[/no-match]
[/loop]
=================================================================

The anticipated result is that it gives me a drop-down list in the form of:

    3Com
    Belkin
    Hewlett Packard
    Sony
    (etc)

The above effort is failing miserably - could someone point me in the right
direction?

Thanks!

Regards, Ade.

_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.