0
My view is like this:
<div class="form-group">
<label for="categorias[]">Selecione a(s) categoria(s) referente(s) a foto:</label>
<select name="categorias[]" class="form-control" multiple="multiple" required>
<?php foreach ($listarCategorias->result() as $row) : ?>
<option value="<?php echo $row->idCategoria; ?>"><?php echo $row->dscCategoria; ?></option>
<?php endforeach ?>
</select>
</div>
What the code of my controller/model would look like for the values of this select to be recorded one in each row in my database table?
passes to a json and stores
– Lucas Antonio