Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Saving a three-dimensional array to the mysql database.

4 views
Skip to first unread message

Kamela Ardina

unread,
May 29, 2012, 1:51:43 AM5/29/12
to
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;

Erwin Moller

unread,
May 29, 2012, 6:14:58 AM5/29/12
to
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

Captain Paralytic

unread,
May 30, 2012, 7:35:33 AM5/30/12
to
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.
0 new messages