Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

Can I make a database call from within my rss.xml file?

  • 1 réponse
  • 1 a ce problème
  • 29 vues
  • Dernière réponse par guigs

I have a rss.xml file for my web site which works just fine, but has to be manually updated each time my web site blog is updated. Is it possible to insert a sql query in my rss.xml file so it can pull the updated info automatically from my mysql db?

I know the rss.xml file will have to be renamed with a .php extension, will it still work?

I have a rss.xml file for my web site which works just fine, but has to be manually updated each time my web site blog is updated. Is it possible to insert a sql query in my rss.xml file so it can pull the updated info automatically from my mysql db? I know the rss.xml file will have to be renamed with a .php extension, will it still work?

Toutes les réponses (1)

I think this is what you are looking forhttp://dev.mysql.com/doc/refman/5.1/e.../xml-functions.html They are called XML functions that you can set up in an .php file to export the updated file name as rss.xml, though I think it will overwrite anything already in the .xml file.

If you care to dabble, you may already be a master, but there are some cool rss tutorials here http://www.w3schools.com/rss/

Hope this helps!