I'm trying to select all values from my MySQL database. Options a, b, and c work fine but I'm not sure of the syntax to select all three.
<option value="1">a</option>
<option value="2">b</option>
<option value="3">c</option>
<option value="1,2,3">All</option>
I think you want to use the select to fetch a item or all items if I understand your question correctly and by seeing your 'all' option's value.
If so then change your select option's value for all to
<option value="all">all items</option>
.Then change your PHP file (where you posting to with the form) to this:
i think you want
multiple="multiple"
it will allow you to select multiplenow you will get array of selected option which you can get by either
GET
orPOST
to select all on selecting last you can use jquery like
Try this