Welcome Guest, Not a member yet? Register   Sign In
Question about an array in a query
#9

[eluser]CodeIgniterNoob[/eluser]
Hey guys I fixed it. What I did was, I built a buildString method that took that $key array and broke it down into a string. Like this:
Code:
$string = "";
foreach ($numbers as $key => $value)
{
    $string .= " ".$key." ";
}
return $string;

But I called the method like this:
Code:
$zipstring = explode(" ",buildString($numbers, $radius));

And created an array which ci could understand, because before it wasnt formatted properly. And now everything works like it should.

Thank you all.


Messages In This Thread
Question about an array in a query - by El Forum - 03-21-2009, 01:55 PM
Question about an array in a query - by El Forum - 03-21-2009, 02:24 PM
Question about an array in a query - by El Forum - 03-21-2009, 03:27 PM
Question about an array in a query - by El Forum - 03-21-2009, 05:27 PM
Question about an array in a query - by El Forum - 03-21-2009, 05:33 PM
Question about an array in a query - by El Forum - 03-21-2009, 05:50 PM
Question about an array in a query - by El Forum - 03-21-2009, 08:27 PM
Question about an array in a query - by El Forum - 03-21-2009, 11:17 PM
Question about an array in a query - by El Forum - 03-22-2009, 10:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB