new to RSS
uiteindelijk kreeg ik de string die ik wou, en ben ik via validators fouten eruit gaan halen. Maar de laatste foutjes krijg ik niet opgelost
iemand met meer ervaring die eens wil kijken en mij mss wat adviseren?
bedankt alvast.
http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fwww.acidleague.com%2FLeague%2Findex_rss.php
http://www.ivalidation.net/html.php?uri=http%3A%2F%2Fwww.acidleague.com%2FLeague%2Findex_rss.php
dit is men code
Code (php)
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
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
<?php
header("Content-Type: application/xml; charset=utf-8");
include("./includes/egl_inc.php");
$secure = new secure();
$secure->secureGlobals();
$rssurl = 'http://www.acidleague.com/League/index_rss.php';
$rssname = 'AcID FFA RSS';
$rssdes = 'Free For All Matches Agenda';
$xml = '<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel>';
$xml.='<title>'. $rssname .'</title><description>'. $rssdes .'</description><link>'. $rssurl .'</link>';
$query_items = "SELECT id,date FROM ffa_matches where status=0";
$result_items = mysql_query ($query_items) or die("Query failed with
error: ".mysql_error());
while($row = mysql_fetch_array($result_items))
{
$result = $row[id];
$resultdate = $row[date];
$matchurl = $row[date];
$xml .= '<item><title>'. $result .'</title><link>'. $matchurl .'</link><description>'. $resultdate.'</description></item>';
}
$xml .= '</channel>';
$xml .= '</rss></xml>';
echo $xml;
?>
header("Content-Type: application/xml; charset=utf-8");
include("./includes/egl_inc.php");
$secure = new secure();
$secure->secureGlobals();
$rssurl = 'http://www.acidleague.com/League/index_rss.php';
$rssname = 'AcID FFA RSS';
$rssdes = 'Free For All Matches Agenda';
$xml = '<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel>';
$xml.='<title>'. $rssname .'</title><description>'. $rssdes .'</description><link>'. $rssurl .'</link>';
$query_items = "SELECT id,date FROM ffa_matches where status=0";
$result_items = mysql_query ($query_items) or die("Query failed with
error: ".mysql_error());
while($row = mysql_fetch_array($result_items))
{
$result = $row[id];
$resultdate = $row[date];
$matchurl = $row[date];
$xml .= '<item><title>'. $result .'</title><link>'. $matchurl .'</link><description>'. $resultdate.'</description></item>';
}
$xml .= '</channel>';
$xml .= '</rss></xml>';
echo $xml;
?>
Gewijzigd op 08/05/2012 02:30:11 door Groovez acid
<link>2012-05-09 20:30:00</link> Dit zijn geen links.