Resuelto, dejo el codigo por si alguien tiene el mismo problema, es lo mas basico pero como me paso a mi, horas buscando solución ejeje
Código PHP:
Ver originalfunction cargarCombo(){
try{
$query="select * from categorias";
//Preparamos la Consulta para su ejecucion:
$stmt =$this->con->prepare($query);
//Ejecutamos la Consulta
$stmt->execute();
//Obtengo el total de filas afectadas por la accion que se realiza
//$res=$stmt->rowCount();
//$data = $stmt->fetchAll();
$data = $stmt->fetchAll(PDO::FETCH_ASSOC);
return $data;
}catch(PDOException $e){
echo $e->getMessage();
}//catch
}//Cargar Combobox
y el select:
Código PHP:
Ver original<select name="categorias">
<?php foreach($av as $row) : ?>
<option value="<?php echo $row['id_categoria']; ?>"><?php echo $row['categoria']; ?></option>
<?php endforeach ?>
</select>