Hi!

Thanks for responding. I checked my PHP with phpinfo() and it says I
have DOM/XML enabled.

I also, don't have a webpage yet, I'm running everything on local
host. But I looked at the html and I'm not even getting the .xml file
nor this "phpsqlsearch_expectedoutput.xml" at the end of my URL. It
might be that problem. So I guess that brings to my next questions. Is
it supposed to output a file onto my computer with the .xml file? Or
is it supposed to just be in my browser.

I got my code work, sometimes theres no errors and sometimes there
are.

I've added


if ((isset($_GET["lat"])) && (isset($_GET["lng"]))){

...

}

and


if (empty($dom)){
echo $dom->saveXML();
}

Because these were giving me undefined variable. Now since I set $dom
to if (empty) it gives me this red box saying:


"This page contains the following errors:
error on line 2 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error."


Thanks for the response!


On Jul 31, 7:53 am, "[email protected]" <[email protected]>
wrote:
> On Jul 31, 2:50 am, andrewliu <[email protected]> wrote:
>
> > I've been following this tutorial and I'm having problems. I have the
> > phpmyadmin and php 5.3.0. I've searched this forum for my problem but
> > couldn't find a solution.
>
> Maybe it is a PHP problem and not a google maps problem.
>
>
>
> > Well my problem is that I'm not getting the markers from the tutorial
> > like I'm supposed to.
>
> Have you tried looking directly at the URL that is supposed to
> generate the xml.  If the browser gives errors or doesn't show your
> xml, you need to fix that first (as I think it says in that
> tutorial).  If you provide a link to that and your map, we might be
> able to tell what is wrong.
>
>
>
> > First I copied the script from the tutorial and I changed the data to
> > suit my needs and I received errors with undefined variables with the
> > $_GET variables, but I set the whole script to
>
> > "if (isset($_GET['lat'])) && ... etc.)"
>
> > and ended the if statement before the last echo. and I did the same if
> > statement too the echo part too.
>
> > Now I don't get an error and I just get a blank page, but I do not get
> > the marker like the tutorial has. I right clicked my blank page and
> > inspected the elements but no markers.
>
> > How would I fix this problem?
>
> Following the posting guidelines would be a good first step.
> (Link to your map that exhibits the problem)
>
>   -- Larry
>
>
>
>
>
> > Thanks

-- 
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.

Reply via email to