Thanks for your reply. The main feed script I tried to use references a feed creation script.
I found one online that looked a little too simplified but have tried that:
Below is the code for my feed script:
[php]<?php
include “admin_includes.php”;
//SET XML HEADER
header('Content-type: text/xml');
//CONSTRUCT RSS FEED HEADERS
$output = '<rss version="2.0">';
$output .= '<channel>';
$output .= '<title>Site name</title>';
$output .= '<description>Feed description</description>';
$output .= '<link>http://www.website.com/</link>';
$output .= '<copyright>Copyright details</copyright>';
$s =“select f_wine_product_id, f_wine_product_vintage, f_wine_product_label, f_wine_product_size, f_wine_product_vis, f_wine_product_percase, f_wine_product_pricepercase, f_wine_label_name, f_wine_size_name from WINE_PRODUCT, WINE_LABEL, WINE_SIZE where f_wine_product_label=f_wine_label_id and f_wine_product_size=f_wine_size_id and f_wine_product_vis=1 order by f_wine_label_name”;
$r=sql_do($s);
$c=mysql_num_rows($r);
if($c>0){
for($i=0;$i<$c;$i++){
$row=mysql_fetch_row($r);
$output .= ‘’;
$output .= ‘’.$row[7].’’;
$output .= ‘’.$row[1].’’;
$output .= ‘…/index.php?wineprofile=’.$row[0].’’;
$output .= ‘£’.$row[6].’’;
$output .= ‘cs of ‘.$row[5].’ ‘.$row[8].’’;
$output .= ’ ';
}
}
//CLOSE RSS FEED
$output .= ‘’;
$output .= ‘’;
//SEND COMPLETE RSS FEED TO BROWSER
echo($output);
?> [/php]
This outputs a live php page that shows the browser only the name of the feed and the description.
If I look at the source of the file, it is serving data - a sample of that is below:
[php]Site nameFeed descriptionhttp://www.website.com/Copyright detailsBrane Cantenac2005http://www.888finewine.com/index.php?wineprofile=45£500.00cs of 12 75cl Bottle Calon Ségur2000http://www.888finewine.com/index.php?wineprofile=14£800.00cs of 12 75cl Bottle Carruades de Lafite2008http://www.888finewine.com/index.php?wineprofile=72£4100.00cs of 12 75cl Bottle Cheval Blanc1999http://www.888finewine.com/index.php?wineprofile=65£3900.00cs of 12 75cl Bottle Cheval Blanc2001http://www.888finewine.com/index.php?wineprofile=64£3400.00cs of 12 75cl Bottle Cheval Blanc2001http://www.888finewine.com/index.php?wineprofile=63£3300.00cs of 6 Magnum (150cl) Cheval Blanc2000http://www.888finewine.com/index.php?wineprofile=69£8900.00cs of 6 Magnum (150cl) Cheval Blanc1998http://www.888finewine.com/index.php?wineprofile=13£4800.00cs of 12 75cl Bottle Clos l’Eglise1998http://www.888finewine.com/index.php?wineprofile=26£475.00cs of 6 75cl Bottle Cos d’Estournel1996http://www.888finewine.com/index.php?wineprofile=7£1300.00cs of 12 75cl Bottle Cos d’Estournel2001http://www.888finewine.com/index.php?wineprofile=16£1400.00cs of 12 75cl Bottle Cos d’Estournel2003http://www.888finewine.com/index.php?wineprofile=41£1800.00cs of 12 75cl Bottle[/php]
The W3C validator says my custom elements are not defined.