Ask a Question related to Macromedia Flash Data Integration, Design and Development.

  1. #1

    Default something wrong..

    I want to integrate following php-file into my Flash-movie, but something still
    does not work.
    The Php-file is like that:


    Online it looks like that:
    [url]http://www.ulla.nl/henri_ritzen/input.php[/url]

    Thankx for any tips !!!


    <?php

    header("Content-type: text/xml");

    $host = "localhost";
    $user = "username";
    $pass = "password";
    $database = "db";

    $linkID = mysql_connect($host, $user, $pass) or die("Could not connect to
    host.");
    mysql_select_db($database, $linkID) or die("Could not find database.");

    $query = "SELECT * FROM home LIMIT 0, 9";
    $resultID = mysql_query($query, $linkID) or die("Data not found.");

    $xml_output .= "<rss version=\"2.0\">\n";
    $xml_output .= "<channel>\n";

    for($x = 0 ; $x < mysql_num_rows($resultID) ; $x++){
    $row = mysql_fetch_assoc($resultID);
    $xml_output .= "<item>\n";
    $xml_output .= "<idder>" . $row['id'] . "</idder>\n";
    $xml_output .= "<title>" . $row['title'] . "</title>\n";
    $xml_output .= "<link>http://ulla.nl/henri_ritzen/content.php?id=" .
    $row['id'] . "&amp;expandable=" . $row['menuLink'] . "</link>\n";
    $xml_output .= "<enclosure url='images/" . $row['doc'] . "' type='" .
    $row['ext'] . "'/>\n";
    $xml_output .= "</item>\n";
    }

    $xml_output .= "</channel>\n";
    $xml_output .= "</rss>";

    echo $xml_output;

    ?>

    Ulitasch Guest

  2. Similar Questions and Discussions

    1. What am I doing wrong?
      > rs.Source="SELECT id From User Where upper I asked this before... Try sql = "SELECT id FROM user WHERE UPPER(cLoginID) = '" & vUserID &...
    2. What is wrong?
      Take a look at your Stored Procedure. It takes a wide variety of data types. But in your code, you use an overloaded version of the Add() method of...
    3. What am I doing wrong???!?!
      I have a simple form that based on the the two inputs, ExAD_Tracking and ExAD_DateEntered, will query the database and display the records...
    4. What am I doing wrong
      I am trying to fade in an image over time, however the image keeps blinking, it fades in all the time. Below is my script. on exitFrame me go to...
    5. What am I doing wrong with this SP??
      Gives me a NULL value at this line. and I know it has a 1 myShippingDetails.theShippingType = CStr(parametertheShippingType.Value) Public...
  3. #2

    Default Re: something wrong..

    with this code (without database) it works...

    <rss version="2.0">
    <channel>
    <item>
    <idder>0207</idder>
    <title>1 project benaming</title>
    <link>http://www.klebowax.com</link>
    <enclosure url='images/video.flv' type='flash/flv' />
    </item>
    <item>
    <idder>0207</idder>
    <title>2 project benaming</title>
    <link>klebowax.com</link>
    <enclosure url='images/video.flv' type='flash/flv'/>
    </item>
    <item>
    <idder>0207</idder>
    <title>3 news items</title>
    <link>klebowax.com</link>
    <enclosure url='news/news_01.swf' type='flash/swf' />
    </item>
    </channel>
    </rss>

    Ulitasch Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139