Ver Mensaje Individual
  #5 (permalink)  
Antiguo 07/02/2011, 07:06
Avatar de arielcasanova
arielcasanova
 
Fecha de Ingreso: octubre-2004
Ubicación: Bahía Blanca - Argentina
Mensajes: 332
Antigüedad: 19 años, 6 meses
Puntos: 1
Respuesta: ayuda para tomar datos de una db

IsabelM lo intenté con lo que dice el artículo pero no me funcionó.
Es decir, dejé este código:
Código:
<?php
Header("content-type: application/x-javascript");
?>
   
var fadeimages_home=new Array()
<?php 
include ("conexion.php");
$conexion = mysql_connect ($host, $user, $pass);
mysql_select_db ($base, $conexion);
$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
}

?>
Dentro del archivo slideshow.js.php pero no funcionó... ¿alguna sugerencia?
__________________
Ariel Casanova
diseño y desarrollo web estratégico
www.emporia.com.ar