If i  use the same method to create an xml file from mysql then output
it on the sidebar.

How would this pull the time value which is a number that then
converts in php as this

<td>'.date('Y-m-d', $time).'</td>

Is there a javascript equivalent to convert this time value from the
xml value?

var time = cars[i].getAttribute("time");







On Sep 22, 7:05 pm, Rossko <[email protected]> wrote:
> > I am having some error when i try to pass a variable via javascript
> > call to a php function.
> ...
> > function showlistingsbystate(thestate)
> ...
> > displayCarListingsbyState("'+thestate+'");?>';
> ...
> > <?
> ....
> > function displayCarListingsbyState($thestate){
> >    global $database;
>
> php doesn't work like that.  php runs server side, and creates a
> webpage which is delivered to a client browser.
> php execution is then finished.
> When the client browser runs javascript, it cannot possibly get direct
> access to server-side php functions.
>
> You could look into how to access php functions via AJAX - you would
> use a form submission technique to send data from client javascript to
> a php server script, have the client javascript listen for a data
> response from the server, and then do whatever with it within the same
> webpage.http://www.google.co.uk/search?hl=en&source=hp&q=php+ajax+tutorial&me...
>
> This is not a maps question.
>
> cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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