Found it! The demo code in phpsqlsearch_map.html to open the connection is:
// Opens a connection to a mySQL server $connection=mysql_connect (localhost, $username, $password); The variable $server for localhost is set in the file phpsqlsearch_dbinfo.php, so the line should read: // Opens a connection to a mySQL server $connection=mysql_connect ($server, $username, $password); I think the demo file should be fixed. On Mar 10, 8:01 am, Fred Weaver <[email protected]> wrote: > I'm going thru the demo info > onhttp://code.google.com/apis/maps/articles/phpsqlsearch.htmland I keep > getting "No results found". Firefox debug console is catching the output of > the php file and there is a notice and warning at the head of the xml > output. > > *<br /> > <b>Notice</b>: Use of undefined constant localhost - assumed 'localhost' in > <b>/Applications/MAMP/htdocs/Php2XML/phpsqlsearch_genxml.php</b> on line > <b>15</b><br /> > <br /> > <b>Warning</b>: Cannot modify header information - headers already sent by > (output started at > /Applications/MAMP/htdocs/Php2XML/phpsqlsearch_genxml.php:15) > in <b>/Applications/MAMP/htdocs/Php2XML/phpsqlsearch_genxml.php</b> on line > <b>38</b><br /> > <?xml version="1.0"?> > <markers><marker name="Amici's East Coast Pizzeria" address="790 Castro St, > Mountain View, CA" lat="37* > > GDownloadUrl is passing the correct parameters, but are the notice/warning > messages hindering GXml.parse from recognizing the xml markers? Is there a > php setting I need to set the restrict notice and warning output? -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
