[eluser]bondjp[/eluser]
[quote author="Federico Bana" date="1280381064"]You're creating an associative array instead of one with a numeric index, that's why you dont get the result you want from implode(), I think.
Try it like this:
$arr = array( 'asd1', 'asd2', 'asd3' );
Then:
print_r( $arr[0] ) => 'asd1'
print_r( $arr[1] ) => 'asd2'
print_r( $arr[2] ) => 'asd3'
Hope this helps.[/quote]
The array that i got is like this: '5345'=>'value1','5235'=>'value2','76542'=>'value3'.
I just want the indexes '5345','5235','76542' so that i can do the query
Code:
WHERE( 'brandcode IN', $brancode);
From what i saw i need to get the values in quotes so that the query would work...