I am trying to create a dropdown box where it has from 10 - 90, I want each value to stand for the numbers in between (so 10 will hold 11, 12, 13, 14.. and so on and so forth).
The value of an can be any string; it's up to your server-side code to interpret that string appropriately.
Rather than always using the string-match operator LIKE
in your SQL, you need to choose appropriate conditions for each of your columns.
For instance, set your value to be a range specified by min and max: and then use
<=
and >=
in your SQL (beware of "fence-post errors"!)
list($min,$max) = explode('-', $_POST['trayheight']);
$sql .= 'And trayheight >= ' . intval($min) . ' And trayheight <= ' . intval($max);