05/02/2011, 13:57
|
| | | Fecha de Ingreso: octubre-2004 Ubicación: Bahía Blanca - Argentina
Mensajes: 332
Antigüedad: 20 años, 3 meses Puntos: 1 | |
Respuesta: ayuda para tomar datos de una db El script php es este
Código:
<?php
$sql="SELECT * from rotax_fotos
order by id desc";
$result = mysql_query($sql, $conexion);
while ($row=mysql_fetch_array($result))
{
$id=$row['foto'];
if ($i=="") {$i="0";} else {$i=$i+1;}
?> fadeimages_home[<?php echo $i;?>]=["fotos/<?php echo $foto; ?>", "", ""]<?php
}
?>
|