I have the line of code:
echo '<a href="https://maps.google.co.uk/maps?q='.$caseReference['Latitude'].',-1.958862">MAP</a>';
However, when you click the hyperlink it doesn’t print anything after the latitude. EG – “,-1.958862”
The end result I want is to take Latitude & Longitude variables off the database and generate a hyperlink to Google Maps. (Yes, i’m aware storing latitude / longitude coordinates with it’s symbols in a database isn’t the best way to do things).
Any ideas?
[note] – I have printed the variable previously and it isn’t empty.
There is absolutely nothing wrong with that bit of code.
running this will prove it
so now you need to check the case of Latitude and the spelling. If its all correct then try a print_r of $caseReference and check it fully.