FastPHP adlı üyeden alıntı: mesajı görüntüle
@turkeylegend;

<?php
$servername = "localhost";
$username = "xx";
$password = "xx";
$dbname = "xx";
$conn = new mysqli($servername, $username, $password, $dbname);
$sql = "SELECT * FROM aa_link";
$result = $conn->query($sql);
header('Content-type: text/xml');
echo '<?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"> <?php while ($row = $result->fetch_assoc()) {?> <url> <loc><?php echo 'https://aa.com' . $row["aa_link"]; ?></loc>********<changefreq>weekly</changefreq> <priority>0.7</priority> </url> <?php }?> </urlset>
Şuan şöyle bir hata çıktı hocam