Welcome Guest, Not a member yet? Register   Sign In
Help, How to pass an array value from database
#3

[eluser]Unknown[/eluser]
[quote author="pickupman" date="1293234883"]You are creating an multidimensional array. Try using instead:
Code:
foreach ($query->result() as $row){
   $mylabel[] = (string)$row->mylabel; //result String, is this code, correct?
   $mydata[] = (int)$row->mydata;  //result integer, is this code, correct?
}
[/quote]


Great!!! This code work for me
Thank you very much, I can't find how to thank you, thanks for pickupman


Messages In This Thread
Help, How to pass an array value from database - by El Forum - 12-24-2010, 10:51 AM
Help, How to pass an array value from database - by El Forum - 12-24-2010, 11:54 AM
Help, How to pass an array value from database - by El Forum - 12-24-2010, 05:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB