On Mar 17, 12:31 am, Beth <[email protected]> wrote: http://www.integratedstatistics.com/ejosephs/v2pages/MapCachalot3.php > makes a php script query the database and plot the right voyage, but > only if I add the actual voyageID (the parameter I would like to pass > to the page) as the URL parameter (?voyageccc=12950). It doesn't work > if I add ?voyageccc=$voyage.
A url like mycode.php?voyageccc=12950 will generate a $_GET ['voyageccc'] with value 12950. You can assign a variable to make it more manageable: $voyage=$_GET['voyageccc']; Make sure you investigate and implement some security checks and do not blindly use a passed parameter in your SQL. 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 -~----------~----~----~----~------~----~------~--~---
