|
|
|
Voici mon code:
header("Content-type: text/xml"); print("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); ?> <urlset xmlns="http://www.google.com/schemas/sitemap/0.84"> <? $resultats=mysql_query("SELECT id FROM table WHERE etat=1"); if (mysql_fetch_row($resultats)!=0) { while ($ligne=mysql_fetch_array($resultats)) { ?><url> <loc>http://www.xxxxxx.fr/xxxxx.php?id=<?=$ligne['id']; ?></loc> <lastmod>2007-04-19</lastmod> <changefreq>daily</changefreq> <priority>0.9</priority> </url> <? } } ?></urlset> |
| 03/07 10h17 | [php] pb génération fichier xml avec php | Programmation | 03/07 13h01 | 2 |
| 27/03 15h28 | comment générer un fichier xml dans php | Internet | 29/08 12h33 | 1 |
| 10/01 12h53 | [Php XML] générer des fichiers xml à patir DB | Programmation | 14/01 11h50 | 1 |
| 12/03 15h02 | Update de fichier XML via php | Webmastering | 14/03 10h17 | 8 |