<?php $id_album = $_GET['id']; $album = CadastroAlbum::getAlbumId($id_album); ?> <script type="text/javascript"> function carregaCategoria(id){ var combo = document.getElementById('categoria'); for(i = 0; i < combo.length; i++){ if(combo.options[i].value == id){ combo.options[i].selected = true; } } } </script> <div class="container-fluid"> <div class="row"> <div class="form-group" id="result_ajax"> <input type="hidden" name="id" value="<?php echo $id_album; ?> "> <label class="control-label" for="adicionar-fotos">Nome:</label><br/> <input id="adicionar-album" name="nome" multiple class="form-control" value="<?php echo $album[0]->nome; ?> " type="text" required ><br/>
public function getBuscarFotos($id) { $cadAlbum = new CadastroAlbum(); $lista = $cadAlbum->getAlbumId($id); return $lista; }