in my web application i have added multiple data to database from json_encode using multiple select options.
in my database column its shown as below.
["Agriculture & Food Processing","Automobiles","Banking & Financial Services"]
Now i want to retrieve these data to edit and update. my view is like attached image
and my code is like below
<div class="form-group">
<label for="industry">Intrsting Industry</label>
<select id="industry" name="industry[]" class="form-control" multiple>
<option value="">Select Option </option>
<option>Agriculture & Food Processing</option>
<option>Automobiles</option>
<option>Banking & Financial Services</option>
<option>BPO / KPO </option>
<option>Civil & Construction</option>
<option>Consumer Goods & Durables</option>
<option>Consulting</option>
<option>Education</option>
<option>Engineering</option>
<option>Ecommerce & Internet</option>
<option>Events & Entertainment</option>
<option>Export & Import</option>
<option>Government & Public Sector</option>
<option>Healthcare</option>
<option>Hotel, Travel & Leisure</option>
<option>Insurance</option>
<option>IT & Telecom</option>
<option>Logistics & Transportation</option>
<option>Manufacturing</option>
<option>Manpower & Security</option>
<option>News & Media</option>
<option>NGO & Non profit</option>
<option>Pharmaceutical</option>
<option>Real Estate</option>
<option>Wholesale & Retail</option>
<option>Others</option>
</select>
SO how can i selected above list from database.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire