I am following this tutorial step by step http://code.google.com/apis/maps/articles/phpsqlajax.html . Actually I copy pasted the code and created the database, added the data to the table, downloaded the provided php and html files but when i actually try to run the page that will create the xml file i get this error. Can anyone guess what is wrong? I am using XAMPP
1.7.4
[PHP: 5.3.5]
(The google tutorial suggests 3 ways to generate the xml file. I tried all 3 of them and the same error appears on the first 2 and an “error on line 10” (which is the line that php script begins) appears when i try the 3rd suggested way. I am thinking if this wont work to use mysqldump command in order to export the xml file i need.)

-EDIT-
Problem was in the connection to the database, value for $host and/or $user and/or $pass was incorrect or not provided.
If you use version 2 (phpsqlajax_genxml2), edit the file at
line 15replacinglocalhostwith'localhost'.If you use version 3 (phpsqlajax_genxml3), edit the file at
line 13replacinglocalhostwith'localhost'.Then try again.