Search found 3 matches

by jelonek
Tue Apr 21, 2009 12:17 am
Forum: PHP - Code
Topic: How can I make and show associative table ?
Replies: 4
Views: 611

Re: How can I make and show associative table ?

I think it is something like that - it is complicate :P   $data[] = array('category'=>'employees', 'dane'=>array()); $data[] = array('category'=>'students', 'dane'=>array());   $data[0]['dane'][] = array('name'=>'Jack Jones', 'home'  => '777-555-555'); $data[0]['dane'][] = array('name'=>'Jack Jones2...
by jelonek
Mon Apr 20, 2009 10:14 pm
Forum: PHP - Code
Topic: How can I make and show associative table ?
Replies: 4
Views: 611

Re: How can I make and show associative table ?

Thx You very much pickle and McInfo but I can't show that :(   $data['employees'][] = array('name'=>'Jane Munson'); $data['animals'][] = array('name'=>'Michael');   $data['students'][] = array('name'=>'Jack Jones2'); $data['computers'][] = array('name'=>'Eniac'); ..............;     //count() - retu...
by jelonek
Mon Apr 20, 2009 3:21 pm
Forum: PHP - Code
Topic: How can I make and show associative table ?
Replies: 4
Views: 611

How can I make and show associative table ?

I will create loop to add data to associative table but first I would like to make it manually because it is complicate for me. :( Did I make this associative table correct ? How can I show data from this table using for example loop foreach ? It should look: employees: - Jack Jones...... - Jane Mun...