5 Replies Latest reply on Mar 19, 2008 3:25 AM by Greg Dove

    (PHP to XML ) to Flash

    AZDesigner
      flash doesnt demonsrate data which comes from php as XML

      The code is below:
      xml.fla
      -----------------------------------
      var xm:XML = new XML ();

      xm.onLoad = function (durum) {
      if(durum) {
      trace(xm.toString());
      }
      }

      xm.load("send.php");


      send.php
      -----------------------
      if($db->connect() ) {
      $db->myQuery("select * from `products`");
      $send = "<products>";
      while($row = $db->print() ) {
      $send .= "<pro>".$row['productName']."</pro>";
      }
      $send .= "</products>";
      echo $sendr;
      }