How to get more data when we select one item.

Mr. Karpovich's Avatar

Mr. Karpovich

20 Jul, 2011 03:46 AM

Hi, I'm trying to get more info when I select an item, but I don't know how to do it... even I don't know is this is possible,
here the situation...
I have this get this values from the database...
foreach($names as $a)

    {
        $json = array();
        $json['value'] = $a['file_id'];
        $json['name'] = $a['last_name'].' '.$a['first_name'].', '.$a['home_name'];
        $json['home_id'] = $a['home_id'];
        $data[] = $json;
    }

    header("Content-type: application/json");
    echo json_encode($data);

My question, is how I can get the "home_id" value?
Is this possible?
I means... I can get access to the value, and to the name... but I don't know how to get a third value, in this case... the home_id.

Sorry for my bad english...
спасибі !!Thanks!

  1. 1 Posted by benlittle1991 on 04 Aug, 2011 07:12 PM

    benlittle1991's Avatar

    How do you capture the first values? I'm struggling on that at the moment.

    If you can share that I may be able to help you find the third value :)

    Thanks,

    Ben.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac