PHP and Google Maps -
After several tests and errors, trying to get the plot markers of Google Map on a map, I have got the problem. I need to show the specific number of HTML to change the URL inside the map which I initially filtered on XML file.
This is a search string I have / P>
& lt; Form action = "control_lbsresult.php" method = "received" & gt; & Lt; Input type = "text" name = "query" /> & Lt; Input type = "submit" value = "search" /> & Lt; / Form & gt; This gives me a filter and filter urls such as
/control_lbsresult.php?query=0716747329 This is the snippet code that filters the XML file
// Select all the rows in the markers table $ msisdn = $ _GET ['msisdn']; $ Query = "SELECT * fbs lbs_ WHERE msisdn = '$ msisdn' LIMIT 10"; $ Result = mysql_query ($ query); If (! $ Result) {dead ('invalid query:'. Mysql_error ()); } Header ("content-type: text / xml"); // start xml file, resonance parent node echo '& lt; LBS_ & gt; '; In the map html, everything is fine but with the help of a file extension Code> If I save the number 0716747329 in coding, then it works. I have a lookup that msisdn = ( * *) bit but the search screen tells us Number found that I entered. downloadUrl ("phpsqlajax_genxml3.php? Msisdn = '$ msisdn'", function (data) I get $ How to MSISDN I use $ _GET or $ _POST, and how do I indicate this page to see the search input
I'm not sure what you are saying but it could just be:
downloadUrl (" phpsqlajax_genxml3.php? Msisdn = ". $ _GET ['msisdn' ], Function (data) Note that this is not secure, you should sanitize it before using $ _GET ['msisdn'] in your SQL query. a number Land.
A. Lso, please use the PDO library for database queries instead of mysql _ *.
Comments
Post a Comment