Ver Mensaje Individual
  #5 (permalink)  
Antiguo 11/03/2008, 12:25
Avatar de TolerantX
TolerantX
 
Fecha de Ingreso: marzo-2006
Ubicación: Guadalajara, México.
Mensajes: 408
Antigüedad: 19 años, 1 mes
Puntos: 10
Re: slideshow en un script php

Sería algo así
Código PHP:
<script type="text/javascript">
countArticle = 0;
var mySlideData = new Array();
<?php while ($rows mysql_fetch_assoc($res2)) { ?>
mySlideData[countArticle++] = new Array(
'<?php echo $row['imagen'];?>',
'<?php echo $row['article'];?>',
'<?php echo $row['title'];?>',
'<?php echo $row['description'];?>'
);
<?php ?>
</script>
en este script como le vacio una variable php?
$query2 = "SELECT * from imagen where imagen.id_v=vivienda_renta.id_v";
$res2=mysql_query($query2);
esta por ejemplo?
__________________
TolerantX
http://tolerantx.com
Linux User #385226