![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
04/09/2003, 03:12
|
![Avatar de gamera](http://static.forosdelweb.com/customavatars/avatar39689_1.gif) | | | Fecha de Ingreso: agosto-2003 Ubicación: Tokio
Mensajes: 18
Antigüedad: 21 años, 5 meses Puntos: 0 | |
Es muy sencillo, solo tienes que recorrer los registros que te devuelve el result:
$sql= "select id_datos from datos_pintura where nombre='$datos'";
mysql_query($sql);
$result=mysql_query($sql);
$totregs=mysql_num_rows($result);
for($i=0;$i<=$totregs-1;$i++){
echo "id_datos" . $i . "=" . mysql_result($result,$i,"id_datos") . "<br>";
} |