Bitcoin Forum
May 08, 2024, 12:17:50 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: PHP Question For a GURU  (Read 1151 times)
sobitcoin (OP)
Full Member
***
Offline Offline

Activity: 210
Merit: 100


View Profile
February 21, 2015, 10:43:22 PM
 #1

Hello! I have a PHP question that has been stumping me for the last 24 hours and I think someone who knows what they are doing would have a simple answer. 

If this is returning single values for an exchange

Code:
$btcbtcchinaPrice = $btcbtcchinaUSD["ticker"]["last"];
$btcbtcchinaVol = $btcbtcchinaUSD["ticker"]["vol"];

How would I change those tags to return all values under certain rows on this api

http://api.bitcoincharts.com/v1/markets.json


I just cant figure out the way to write the selectors, everything i try gives errors  Embarrassed
1715127470
Hero Member
*
Offline Offline

Posts: 1715127470

View Profile Personal Message (Offline)

Ignore
1715127470
Reply with quote  #2

1715127470
Report to moderator
1715127470
Hero Member
*
Offline Offline

Posts: 1715127470

View Profile Personal Message (Offline)

Ignore
1715127470
Reply with quote  #2

1715127470
Report to moderator
1715127470
Hero Member
*
Offline Offline

Posts: 1715127470

View Profile Personal Message (Offline)

Ignore
1715127470
Reply with quote  #2

1715127470
Report to moderator
In order to achieve higher forum ranks, you need both activity points and merit points.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715127470
Hero Member
*
Offline Offline

Posts: 1715127470

View Profile Personal Message (Offline)

Ignore
1715127470
Reply with quote  #2

1715127470
Report to moderator
gweedo
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000


View Profile
February 21, 2015, 10:48:54 PM
 #2

You have to use a loop.
sobitcoin (OP)
Full Member
***
Offline Offline

Activity: 210
Merit: 100


View Profile
February 21, 2015, 10:56:38 PM
 #3

You have to use a loop.


Damn loops. They never go away go they.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!