PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Fri Dec 19, 2014 9:59 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Jan 30, 2012 9:39 am 
Offline
Forum Newbie

Joined: Sat Jan 28, 2012 4:00 am
Posts: 5
How can i display an array onto a html table?
The array i am trying to put onto a table is being pulled from another server.
If you want to see what it's like at the moment, you can see here
"and just pick the 4 checkboxes and input into the text box "Shadowrider50".
It looks very messy without a table or some sort of organization


Top
 Profile  
 
PostPosted: Mon Jan 30, 2012 2:11 pm 
Offline
Forum Newbie
User avatar

Joined: Sat Mar 13, 2010 8:15 pm
Posts: 14
Location: UK
You'll have to iterate through the array using for or foreach (check the examples; they'll help you a lot) and display its content the way you want in a <table>.


Top
 Profile  
 
PostPosted: Sun Feb 19, 2012 10:37 am 
Offline
Forum Newbie

Joined: Sat Jan 28, 2012 4:00 am
Posts: 5
Hi,
Thanks for the answer,

i just read up on how to reference single elements from arrays and i've got it working now :)

I'm using it this way now

Syntax: [ Download ] [ Hide ]
$trophyplatinum = $getCount["0"][platinumtotal];


$getCount has the array stored of trophy information and i just store a single part of that array into $trophyplatinum.
I do the same for all other parts of the array.
This way i can use them anywhere easily by just calling that variable


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Yahoo [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group