![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
09/05/2009, 07:31
|
![Avatar de By_George](http://static.forosdelweb.com/customavatars/avatar297223_2.gif) | | | Fecha de Ingreso: abril-2009 Ubicación: localhost
Mensajes: 629
Antigüedad: 15 años, 9 meses Puntos: 19 | |
Respuesta: guardar en variable una columna $ofertas="";
$sacoofertas="SELECT * FROM ofertas WHERE id_foto=$id AND estado=1";
$resultoferta=mysql_query($sacoofertas,$idcon);
while($filaoferta=mysql_fetch_assoc($resultoferta) ){
$idoferta=utf8_decode($filaoferta['id_oferta']);
echo $idoferta.','; $ofertas.=$idoferta.','; //si te diste cuenta es lo que te habia hecho aqui
} |