Ver Mensaje Individual
  #8 (permalink)  
Antiguo 09/05/2009, 07:31
Avatar de By_George
By_George
 
Fecha de Ingreso: abril-2009
Ubicación: localhost
Mensajes: 629
Antigüedad: 15 años
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
}