Hello, i believe this is pretty easy to solve but i cannot because i am a newb…
So here is the problem…
I call for some xml files from google and successfully display the data i need, there are similar and i want the user to be able to swap between cities and see the various weather data. The problem is that i get the thing to work when manually swapping the elements, everything is solid! But i cannot make it work via links.
$requestAddress = array (
'Athens'=>'http://www.google.com/ig/api?weather=Athens',
'Thessaloniki'=>'http://www.google.com/ig/api?weather=Thessaloniki',
'Heraklion'=>'http://www.google.com/ig/api?weather=Heraklion',
'Patra'=>'http://www.google.com/ig/api?weather=Patra',
'Komotini'=>'http://www.google.com/ig/api?weather=Komotini'
);
$xml_str = file_get_contents($requestAddress['Komotini']);
I suppose that the $xml_str must somehow be affected here, but i cannot guess how. All i need is 5 links that when each one is clicked, makes the $requestAddress to change accordingly!
Any help would be appreciated thanks !