On Jan 8, 2:51 am, Shadman <[email protected]> wrote:
> My partners and I are trying to create a google map version of our
> college campus using your API.

...using the Google API. "We" aren't Google. Well, Pamela is, but the
rest of us aren't.

> I've pasted
> our PHP and the load function that is supposed to do the
> aforementioned details. I'm just not quite sure why this isn't
> working. Is there some sort of restriction to using PHP within the
> API?

No. All PHP is is a server-side language which creates the HTML and
Javascript used by the API. Whether that code is created dynamically
by PHP or ASP or read from a plain flat file is immaterial.

> I've noticed that <? ?> (PHP tags) do not seem to show up as the
> same color as they do in other parts of the HTML on my text editor.

That's because your text editor recognises them as PHP tags.

> Any help you can provide us with would be absolutely amazing.

I haven't bothered quoting the code, but if that is really what you
have, you should end up with a PHP error because the quote marks are
all over the place. If you don't end up with a PHP error, then looking
at the Javascript errors or the resulting HTML in your browser should
provide a clue as to what's going on. You haven't given us a link to
see that (see the posting guidelines).

The best way of writing code like this, in my experience, is to write
the statements using actual literal numbers or addresses instead of
your PHP variables. Test it. Then replace the numbers and strings with
the PHP which will insert the values in the right place. Using the
shorthand <?= for <?echo [provided your server supports it] may make
your code more readable.

Are you really at Harvard?

Andrew
--~--~---------~--~----~------------~-------~--~----~
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