skyhighweb Posted May 2, 2017 Share Posted May 2, 2017 Am using php MySQL and i have a table which get filled, i want to be able to remove already selected data from list(frontend) automatically to avoid multiple selection and not having two of the same data in the column how do i go about this, thanks. for example, if on the drop menu we have mike Jacob Steve David if someone already selected steve i don't want him to show up on the list plz note i have already exist code, i dont want to use that, thanks Link to comment Share on other sites More sharing options...
dsonesuk Posted May 2, 2017 Share Posted May 2, 2017 Using PHP? You would have to send value of selected items in array through post or ajax so the php code that produces the dropdown creates dropdown without the items in array. Link to comment Share on other sites More sharing options...
skyhighweb Posted May 2, 2017 Author Share Posted May 2, 2017 sorry am not that good in php yet how do i go about this thanks Link to comment Share on other sites More sharing options...
dsonesuk Posted May 2, 2017 Share Posted May 2, 2017 https://www.w3schools.com/php/php_superglobals.asp https://www.w3schools.com/xml/ajax_php.asp https://www.w3schools.com/php/php_ref_array.asp https://www.w3schools.com/js/js_json_php.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now