![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
18/02/2011, 10:20
|
![Avatar de Patriarka](http://static.forosdelweb.com/customavatars/avatar387800_5.gif) | | | Fecha de Ingreso: enero-2011 Ubicación: Moreno, Buenos Aires, Argentina
Mensajes: 2.851
Antigüedad: 14 años Puntos: 288 | |
Respuesta: problemas con select 1.
$db = DataBase::getInstance();
2.
$db->setQuery("SELECT DISTINCT(se_nombre) FROM servicios");
3.
$res = $db->loadObjectList();
4.
$str = "";
5.
foreach($res as $data){
6.
$str = <option>".$data->se_nombre."</option>";
7.
}
8.
return $str;
PERDON PENSE Q $str = ""; ESTABA DENTRO DEL FOREACH, IGUAL NO HACE FALTA CONCATENARLO EN EL SELECT POR QUE SE ARMA SOLO (SUPONGO QUE ESOS OPTION ESTAN DENTRO DE UN SELECT). |