FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Saving a three-dimensional array to the mysql database.
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Saving a three-dimensional array to the mysql database. [message #178291 is a reply to message #178290] Tue, 29 May 2012 10:14 Go to previous messageGo to previous message
Erwin Moller is currently offline  Erwin Moller
Messages: 228
Registered: September 2010
Karma:
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
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: How to construct an associative and numeric indexable array
Next Topic: Problem setting Date field in MySQL
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 12:33:04 GMT 2024

Total time taken to generate the page: 0.05334 seconds