I'm having a hard time with the XML function being used in the tutorial shown here..
http://code.google.com/apis/maps/articles/phpsqlsearch.html And this is what I have being displayed so far based on my progress.... http://wesco.jp-clients.com/branch_locate/index.php As you can see I have effectively registed for my API key and the map is showing up. Currently I have the database set up like this.... CREATE TABLE `markers` ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , `name` VARCHAR( 60 ) NOT NULL , `address` VARCHAR( 80 ) NOT NULL , `lat` FLOAT( 10, 6 ) NOT NULL , `lng` FLOAT( 10, 6 ) NOT NULL I have inserted two locations into the database. I used the first two pizza shops from the demo (first link at top). The only way I can get what I already have to show up, is if I comment out these lines of code... //$dom = new DOMDocument("1.0"); //$node = $dom->createElement("markers"); //$parnode = $dom->appendChild($node); //header("Content-type: text/xml"); //echo $dom->saveXML(); when those lines are NOT commented out... I get this error.... Fatal error: Cannot instantiate non-existent class: domdocument in / home/virtual/site26/fst/var/www/wesco/branch_locate/mapshit.php on line 10 Line 10 is this... $dom = new DOMDocument("1.0"); Why am I getting this error? when I comment out that line...it tells me the error is on line 11, it's like it doesn't know where the error really is....Help would be GREATLY appreciated...thank you, respond to [email protected] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
