|
Posted by David Haynes on 02/08/06 01:19
Black Shuck wrote:
>
> ??? I have no idea what this all means :-(
>
> All I know, is the form post data looks like this:
>
> array(3) { [0]=> string(1) "0" [1]=> string(1) "2" [2]=> string(1) "4" }
>
> and I need to pass: "0,2,4" into my SQL query.. So, in simpleton terms,
> what do I need to do?
>
Try this example:
<?php
$foo = array('0', '2', '4');
$imp = implode(',', $foo);
print_r($foo);
echo "imp = $imp\n";
?>
-david-
Navigation:
[Reply to this message]
|