Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Creating RSS feed on events in database?
Old 12-23-2007, 08:10 AM Creating RSS feed on events in database?
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
okay, how can i make a simple RSS feed depending on a query like this:

PHP Code:
mysql_query("SELECT * FROM events WHERE type='1' ORDER BY date DESC"); 
im a bit clueless what i have seems so confusing!
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
 
Register now for full access!
Old 12-23-2007, 08:55 AM Re: Creating RSS feed on events in database?
JamieLewis's Avatar
Pretty Much a Big Deal...

Latest Blog Post:
Gooie
Posts: 385
Name: Jamie Lewis
Location: UK
Trades: 0
Basically you need to use PHP to create an RSS formatted page.

There are two ways you can do this.

1.Every time you create a new item you could update an rss file using PHP
2.You could generate the feed dynamically using PHP

Depending on the nature of the site you should use different techniques. For example, if the site gets updated consistetly then it might be better to make it dynamic, however is the site gets updated periodically (every day, week etc.) then it makes more sense to have the file updated after every news item.

Here is a basic look at how the first technique can be implemented: http://lowendmac.com/tech/php16.html

And here is how to produce one dynamically: http://www.phpfreaks.com/tutorials/139/3.php

Hope that helps.

Jamie
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
JamieLewis is offline
Reply With Quote
View Public Profile Visit JamieLewis's homepage!
 
Old 12-23-2007, 09:20 AM Re: Creating RSS feed on events in database?
Skilled Talker

Posts: 59
Name: Dan
Trades: 0
There's a good tute here that includes a more or less ready to use php/mysql rss script
Monkey Do is offline
Reply With Quote
View Public Profile
 
Old 12-23-2007, 10:45 AM Re: Creating RSS feed on events in database?
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
THANKS! Dan that link was perfect, nice and simple.

okay can someone help me some more.

how can i have a clickable link?
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Reply     « Reply to Creating RSS feed on events in database?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.60113 seconds with 12 queries