Bitcoin Forum
May 07, 2024, 05:24:40 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
1715059480
Hero Member
*
Offline Offline

Posts: 1715059480

View Profile Personal Message (Offline)

Ignore
1715059480
Reply with quote  #2

1715059480
Report to moderator
1715059480
Hero Member
*
Offline Offline

Posts: 1715059480

View Profile Personal Message (Offline)

Ignore
1715059480
Reply with quote  #2

1715059480
Report to moderator
1715059480
Hero Member
*
Offline Offline

Posts: 1715059480

View Profile Personal Message (Offline)

Ignore
1715059480
Reply with quote  #2

1715059480
Report to moderator
Be very wary of relying on JavaScript for security on crypto sites. The site can change the JavaScript at any time unless you take unusual precautions, and browsers are not generally known for their airtight security.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715059480
Hero Member
*
Offline Offline

Posts: 1715059480

View Profile Personal Message (Offline)

Ignore
1715059480
Reply with quote  #2

1715059480
Report to moderator
1715059480
Hero Member
*
Offline Offline

Posts: 1715059480

View Profile Personal Message (Offline)

Ignore
1715059480
Reply with quote  #2

1715059480
Report to moderator
1715059480
Hero Member
*
Offline Offline

Posts: 1715059480

View Profile Personal Message (Offline)

Ignore
1715059480
Reply with quote  #2

1715059480
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!