Ok, finally it works, google accepted the sitemap and shows all the urls .
There are just 2 details still not perfect:
Line 2 in sitemap.php in browser: Notice: Undefined index: all in /homepages/44/12345678/htdocs/yourquestion/sitemap.php on line 19
And the google warnings:
Sitemap errors and warnings
Line Status Details
7
Invalid XML tag
This tag was not recognized. Please fix it and resubmit.
Parent tag: urlset
Tag: br
Problem detected on: Sep 28, 2010
8
Invalid XML tag
This tag was not recognized. Please fix it and resubmit.
Parent tag: urlset
Tag: b
Problem detected on: Sep 28, 2010
8
Invalid XML tag
This tag was not recognized. Please fix it and resubmit.
Parent tag: urlset
Tag: b
Problem detected on: Sep 28, 2010
8
Invalid XML tag
This tag was not recognized. Please fix it and resubmit.
Parent tag: urlset
Tag: b
Problem detected on: Sep 28, 2010
8
Invalid XML tag
This tag was not recognized. Please fix it and resubmit.
Parent tag: urlset
Tag: br
Problem detected on: Sep 28, 2010
Just for info.
However, thank You so much for this sitemap generator !
Vielen Dank für diesen super SItemap Generator !
For others as inforamtion: Be careful with the Encoding of this script, it must be utf8 , if it does not work try it again.
And if localhost does not work for You, You can use instead
mysql_connect(QA_MYSQL_HOSTNAME,QA_MYSQL_USERNAME,QA_MYSQL_PASSWORD);
and if You use another table-prefix than qa_ You have to change it in line 21 where it says: qa_posts in
$query = "select postid, type, parentid, title, content, created from qa_posts where (type = 'Q') order by created desc";