Ciao, ti posto tutto il codice
<?php
include("inc/config.php");
header("Content-Type: application/xml");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>";
@mysql_connect($host, $user, pass);
@mysql_select_db($name);
$query = mysql_query("SELECT * FROM giochi_files ORDER BY id_gioco DESC LIMIT 0,50");
echo "
<rss version=\"2.0\">\n
<channel>\n
<title>Giochi-Flash.net</title>\n
<link>$url</link>\n
<description>Tantissimi Giochi In Flash Da Giocare On Line</description>\n
<language>it-IT</language>\n
<image>\n
<title>Giochi-Flash.net</title>\n
<url>$url/images/logo.gif</url>\n
<link>$url</link>\n
</image>\n
<webMaster>
[email protected]</webMaster>\n
";
while ($res = mysql_fetch_array($query))
{
$id=$res['id_gioco'];
$nome=$res['nome'];
$nome_ = str_replace(" ", "_", $nome);
$descrizione=$res["descrizione"];
$immagine=$res['screenshot_path'];
$file_path=$res['file_path'];
$cat_id=$res['cat_id'];
?>
<item>
<title><? echo $nome; ?></title>
<link>http://www.giochi-flash.net/giochi-gratis-flash/<? echo $cat_id; ?>/<? echo $id; ?>_<? echo $nome_; ?>.html</link>
<description><? echo $descrizione; ?></description>
</item>
<?
}
?>
</channel>
</rss>
<?
@mysql_close();
?>
Ho provato a togliere tutte le " in tutti ma cmq non succede nulla però ho notato che se tolgo via
[HTML]<link>http://www.giochi-flash.net/giochi-gratis-flash/<? echo $cat_id; ?>/<? echo $id; ?><? echo $nome; ?>.html</link>[/HTML]
Funziona tutto
Cosa potrebbe essere??