On Jul 23, 5:34 pm, Lois Lane <[email protected]> wrote:
> I have used a PHP/MySQL tutorial demo (http://www.map-server.com/
> googlemaps/tutorial_api2.html), but I'm getting this error message:
> PHP Warning: mysql_fetch_array(): 4 is not a valid MySQL result
> resource in C:\Inetpub\wwwroot\dir\index9.php on line 41
>
> I had to add the mysql_free_result because I was getting an error
> message that said I needed it.

But it's in the wrong place. You are destroying your result set before
you do anything with it. Have a look at the manual page:
http://us3.php.net/mysql_free_result -- you should only destroy
$result when you have finished with it.

In Apache, you would only need it for a huge result set, in which case
you're retrieving too many markers for a useful map. IIS might be
different, I suppose.

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