i am working for an shopping cart using php script, i placed a drop down option to display currency rate as per user selection(INR and USD). By default it will display all the price in INR, if any user select USD, then it has to show all the values in USD.I dont know how to display the USD live rates. can any one please help to resove the issue.
You'll need to use an exchange rate API, then parse/decode the results. Google and Yahoo each have APIs (a quick search should turn up more info), and another resource I found is https://openexchangerates.org/
EDIT: Just saw diafol's response. Sorry, had this tab open for a while before I got to it.
Thanks for your post, with help of your post i got an idea and i used the below free API code
$from = 'USD'; /*change it to your required currencies */
$to = 'INR';
$url = 'http://finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s='. $from . $to .'=X';
$handle = @fopen($url, 'r');
$result = fgets($handle, 4096);
$allData = explode(',',$result); /* Get all the contents to an array */
$dollarValue = $allData;
echo 'Value of $1 in Indian Rupees is ₹ '.$dollarValue;