Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15
  1. #1
    Senior Member thuffner's Avatar
    Join Date
    May 2003
    Posts
    165
    Member #
    1363
    I am trying to integrate livemarks for Firefox users on my site. When I use the appropriate code and try to add the livemark to my Bookmarks, there is an error in loading.

    This is because my .xml is created using PHP. Here is the code for my .xml (which is in PHP) file:

    PHP Code:
    <?php include './global.php'
    header('Content-type: application/xml');
    $query 'SELECT entry_id,entry_headline,entry_intro,entry_date,DATE_FORMAT(entry_date,"%M %e, %Y %l:%i %p") AS date
    FROM news_entries ORDER BY entry_date DESC LIMIT 10'
    ;
    $result mysql_query($query); ?>
    <rss version="2.0">
    <channel>
    <?php while ($record=mysql_fetch_array($result)) { ?>
        <title><?php echo $record['entry_headline']; ?></title>
        <link>http://www.bondmovies.com/news/<?php echo $record['entry_id']; ?>.shtml</link>
        <description><?php echo $record['entry_intro']; ?></description>
    <?php ?>
    </channel>
    </rss>
    Is there any way I can get this to work?

    Thanks for any help!
    BondMovies.com - "Nobody Does It Better."

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    What happens when you view the output?
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  4. #3
    Senior Member thuffner's Avatar
    Join Date
    May 2003
    Posts
    165
    Member #
    1363
    Quote Originally Posted by filburt1
    What happens when you view the output?
    It looks like a normal RSS feed:

    http://www.bondmovies.com/bondmovies-rss.xml
    BondMovies.com - "Nobody Does It Better."

  5. #4
    Senior Member thuffner's Avatar
    Join Date
    May 2003
    Posts
    165
    Member #
    1363
    Just added a Turtle Dollar offer for this. I really want it to work!
    BondMovies.com - "Nobody Does It Better."

  6. #5
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Posts
    7,657
    Member #
    1234
    Liked
    138 times
    Is the file asdf.php or asdf.xml?
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at houseofhelp.com

  7. #6
    Senior Member thuffner's Avatar
    Join Date
    May 2003
    Posts
    165
    Member #
    1363
    Quote Originally Posted by Wired
    Is the file asdf.php or asdf.xml?
    bondmovies-rss.xml

    Any thoughts?
    BondMovies.com - "Nobody Does It Better."

  8. #7
    Senior Member thuffner's Avatar
    Join Date
    May 2003
    Posts
    165
    Member #
    1363
    Anyone? Bueller?
    BondMovies.com - "Nobody Does It Better."

  9. #8
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Posts
    7,657
    Member #
    1234
    Liked
    138 times
    Compare it with the WDF one: http://webdesignforums.net/external.php?type=rss

    http://www.bondmovies.com/bondmovies-rss.xml

    I Think this should get you going. If you want a simple news feed reader, sign up for an account at bloglines.com

    HTML Code:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <rss version="0.91">
    <channel>
      <title>Title Of RSS Feed</title> 
      <link>Link to Main Site</link> 
      <description>Description of the Site</description> 
      <item>
    	<title>Title of Item # 1</title>
    	<link>Link to Item # 1</link> 
    	<description>
    		<![CDATA[ 
    			Item # 1
    		]]>  
      	</description>
      </item>
      <item>
    	<title>Title of Item # 2</title> 
    	<link>Link to Item # 2</link> 
    	<description>
    		<![CDATA[ 
    			Item # 2
      		]]>  
     	</description>
      </item>
    </channel>
    </rss>
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at houseofhelp.com

  10. #9
    Senior Member thuffner's Avatar
    Join Date
    May 2003
    Posts
    165
    Member #
    1363
    But how could I integrate that with the PHP that is currently powering the XML file now?
    BondMovies.com - "Nobody Does It Better."

  11. #10
    Senior Member james's Avatar
    Join Date
    May 2003
    Location
    Melbourne, AUSTRALIA
    Posts
    364
    Member #
    1352
    I think it just needs the XML declaration...

    Code:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    Like in Wired's code.
    James H
    Home Page · Mars Page · www.fihsf1.net (formerly www·fihs·net)


Page 1 of 2 1 2 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 03:58 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com