3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: application/xml; charset=utf-8'); //db info $host="localhost"; // Host name $username="mynob"; // username $password="u5"; // password $db_name="my"; // Database name $tbl="sc-urls"; mysql_connect("$host", "$username", "$password"); mysql_select_db("$db_name"); ?> <?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> <!-- Sitemap SoundCloud Downloader--> <?php $q1=mysql_query("SELECT * FROM `$tbl`"); while($r=mysql_fetch_array($q1)){ $url=$r['url']; echo "<url> <loc>http://www.mynoblecare.com/$url</loc> <changefreq>daily</changefreq> <priority>1.00</priority> </url>"; } ?> </urlset>

This is an error 404

There are `0` results


preferences:
157.21 ms | 1399 KiB | 7 Q