Hello,
In my last post i asked the same question badly/wrongly (
http://www.experts-exchange.com/Programming/Languages/Scripting/AJAX/Q_23546727.html)
.
I'm trying to return the results of the following server-side query:
$query_regions_poi = mysql_query("SELECT * FROM locations WHERE reg_id = regions['id']");
while ($row=mysql_fetch_assoc($q
uery_regio
ns_poi)){
echo '<poi_in_region poi_id="'.$row['id'].'" title="'.parseToXML($row['
title']).'
" date="'.$row['date'].'"/>'
;
}
...using an AJAX call so that i can display the results dynamically in my client-side code:
var regpoi = request.open("GET", "
http://www.globexposure.net/includes/read.php?$poi_in_region=reg_id", true);
var html ='<div id="regional_poi">' + regpoi + '</div>';
I'm not sure that the line above is going to give the intended results. I'm trying to return all records from my locations mysql table where $reg_id (var reg_id = markers[i].getAttribute("r
eg_id");) is the same as the id of the current regional marker (var reg_id = markers[i].getAttribute("i
d");)
Many thanks for any advice
Start Free Trial