It may be simple question ,i am fresh to php,amazon
I want to do batch put to my SDB database. I download s php-sdb sdk from amazon and did it successfully.
$bPut = $sdb->batch_put_attributes($domineName, array(
'ItemOne' => array(
'Company' => 'a',
),
'ItemTwo' => array(
'Company' => 'a',
),
'ItemThree' => array(
'Company' => 'a',
)
), true, null);
its works fine.Now I want to make the array (the second parameter) dynamic ie I want to make itemOne,ItemTwo,ItemThree … from SDB database , I did it using $key = implode($row['test']);
But I am fail to create a multidimensional array successfully>how can I do it.Please help
This:
will give you this:
And then you can use it like so: