Hello everybody, before at all happy Christmas and happy new year for all.
I have a system of news made done with php and MySql you can see it here But I want that it shows it in flash and not in php.
My code php is
Code:
<?php
$conn = mysql_connect("localhost","","");
mysql_select_db("es_db",$conn);
$ssql = "SELECT * FROM noticias";
$ssql .= " ORDER BY id desc";
$resultid = mysql_query($ssql,$conn);
$n = 0;
while ($damefila=mysql_fetch_object($resultid)) {
 echo "&titulo$n = strip_tags($damefila->titulo) &fecha$n = strip_tags($damefila->fecha)";
 echo "&mensaje$n = strip_tags($damefila->mensaje) &foto$n = strip_tags($damefila->foto)";
 $n++;
}
echo "&num_filas = $n";
?>
With KollMoves I have created a mc with three dynamic text and a holder for the image. In the first one frame of this I have put this code:
Code:
 function cargar_datos_php() {       
      mensaje.text = "...recibiendo datos";
      noticias_lv = new LoadVars();
      noticias_lv.sendAndLoad("mostrar.php");
      noticias_lv.onLoad = function() {
            //recibimos los datos de mostrar.php//
            titulo.text = this[titulo+n];
            fecha.text = this[fecha+n];
            mensaje.text = this[mensaje+n];
            scr.loadMovie(this[foto+n]);
       };
 }
cargar_datos_php();
stop();
But it not work. Which is the error, which exists I begin badly. Can your help me. you can to see it here.Thanks.