The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Threaded View

Select Order By

How can 6 different SELECT statements be made to call certain values from an ORDER, ex: value for row 2? There are 6 row values allotted per user. This occurs on an Update form.

Table:ContCat (many to many MyISAM table)
W_ID (int4) not null // relates to a user entityCat_ID (int4) not null // relates to a category entity

Statement:
SELECT ContCat.W_ID, Contact.Cat_ID ORDER BY 'ContCat.W_ID' DESC (how to pull a row among the order, for example the 2nd of the 6 rows here?)

Which can be echoed onto six drop menus, in consecutive order 1 thru 6 for each drop menu appearing. (note: some Cat_ID values will have '0' as default so users who initially opted to only Insert 3 total values/rows could add more, say 3 more in this case, if they ever choose to. So all users have 6 values max. Also, there are 250+ possible values for each Cat_ID)