I've got a database of stock, however on my website i've got options of what people can order for example.
I might have 3 items in stock, two green one white, so when a user visits my site they can order 3 so they will select 3 from my drop down menu but when the select green as the color I want it to run a script which will check if the 3 in stock are green, if not return a false message...
I guess it will be a javascript script which will run on a onchange for the drop down????
If so how would the javascript run an SQL query to see if it's in stock???