Jump to content

Yahoo! Weather


Karlos94

Recommended Posts

Right, I am trying to create a small application here, for example picture this..

 

I start off with a table like this (just to let you know this table is bare minimum):

City

Current Weather

London

Get

New York

Get

 

Right, when I click get I'd like to have an extra <tr> tag appear and slide down so I can fit in the response from Yahoo! Weather RSS feed. However, I don't want to explicity define the ZIP code within a hidden input field as that will decrease security, I wish to have the information within a array or comming from a database. For example, I'll do it an array to show how I mean:

 

$city = array(
    array(
        'name' => 'Beijing',
        'zip_code' => 'CHXX0008'
    ),
    array(
        'name' => 'Moscow',
        'zip_code' => 'RSXX0063'
    ),
    array(
        'name' => 'Paris',
        'zip_code' => 'FRXX0076'
    ),
    array(
        'name' => 'Tokyo',
        'zip_code' => 'JAXX0085'
    )
);

 

Any help here? Much appreciated if so!

 

Regards, Karlos94

Link to comment
https://forums.phpfreaks.com/topic/214417-yahoo-weather/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.