Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / May 2008



Tip: Looking for answers? Try searching our database.

something wrong..

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ulitasch - 18 May 2008 14:49 GMT
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:
http://www.ulla.nl/henri_ritzen/input.php

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 - 18 May 2008 14:51 GMT
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>
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.