|
Re: Saving a three-dimensional array to the mysql database. [message #178291 is a reply to message #178290] |
Tue, 29 May 2012 10:14 |
Erwin Moller
Messages: 228 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
On 5/29/2012 7:51 AM, Kamela Ardina wrote:
> Hi!. How can I save a certain field from a three-dimensional array?
> But that array comes from a xml code that I retrieve from channel
> advisor API.
>
> Need Help please.
> Thank you;
If you can access the "field" (element would be a better word in my
opinion), you can save/store it in some variable.
Suppose you have some array (created from XML, or whatever):
$someArr = array();
$someArr[0] = array(22,55,99);
$someArr[1] = array("Joe","Will","Smith");
etc.
Now, if you need to store, say, the second element in $someArr[1],
simply do so:
.....yourcode.....
$rememberMe = $someArr[1][1]; // Will contain "Will"
.....yourcode.....
If that doesn't help you, post a more detailed description of your problem.
Regards,
Erwin Moller
--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens
|
|
|
Re: Saving a three-dimensional array to the mysql database. [message #178298 is a reply to message #178290] |
Wed, 30 May 2012 11:35 |
Captain Paralytic
Messages: 204 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
On May 29, 6:51 am, Kamela Ardina <ardinakam...@gmail.com> wrote:
> Hi!. How can I save a certain field from a three-dimensional array?
> But that array comes from a xml code that I retrieve from channel
> advisor API.
>
> Need Help please.
> Thank you;
Your question is so vague and lacking of detail that all the following
are valid answers:
In the usual way.
By using an INSERT or UPDATE SQL statement,
Easily.
I think you need to show us what you have tried and explain precisely
what part of the process is causing you trouble.
|
|
|