Posted by McKirahan on 03/10/07 05:01
<styliek@gmail.com> wrote in message
news:1173131944.438484.48910@30g2000cwc.googlegroups.com...
> Hmm where to start, im working on a little web project for myself and
> for added functionality i want to incorporate the google map api into
> it so a person can click an address and been shown a map that
> corresponds to that address.
> They perform a search of my database and it returns a bunch of
> results, name, address phone number, etc..
> ideally i would like to create a button or a hyper link that they can
> press next to the name result that would show them into my map api
> page and pass the address variables along with it
>
> here is some script that i create so the users can see all the
> relevant results to their search
>
> while ($row= mysql_fetch_array($result)) {
> echo"<table border ='1' bgcolor = '#CCFFFF' align ='center' >
> <tr>
> <td width ='550' height = '60'> {$row['Name']}
> {$row['Name']}
> {$row['Phone_Number']}
> {$row['Address']}
> {$row['County']}
> <a href=".$row['Website'].">Website Address</a>
> //// This is where i dont know what to do ???????
> <form name ='Map' action='./map.php' method ='post'>
> "$mapaddress = .$row['Address'];"
> <input name='Map' type='submit' width='' class='btn' value='Map' >
> </form>
> /////////////////////////////////////////////////////
> </td>
> </tr>
> </table>";
>
> As you can see I cant figure out a way to post the address variables
> to the page with the google api. Does anyone have any experience in
> this, any help or pointers greatly appreciated
>
Look into Microsoft's Virtual Earth -- it's free w/ no registration:
http://msdn.microsoft.com/mappoint/
http://dev.live.com/virtualearth/
[Back to original message]
|