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.
I want to perform a query where I can find the row where my php POST formvariable 'width' is dynamic.
Example:
If 'width' = 10 only row 1 should be returned
If 'width' = 180 only row 2 should be returned
If 'width' = 105 only row 4 should be returned etc. etc.
I only know the BETWEEN statement as a possible solution but that just works with one column and 2 (dynamic) values. At least, that's what I think now...
SELECT * FROM table WHERE minwidth BETWEEN formvariable_X AND formvariable_Y
I would like something as
SELECT * FROM table WHERE formvariable_X BETWEEN column_X AND column_Y