for some reason im getting a error with the implode function. here is my code below.
<?php if (isset($_POST['delete'])){
require_once('Connections/ok.php');
mysql_select_db($database_ok,$ok);
echo $_POST['delete']; // returns "1"
var_dump($_POST['delete']);// returns string(1)
$deletelist = implode(",", $_POST['delete']);
$query = "DELETE FROM products WHERE productID = '{$deletelist}'";
mysql_query($query,$ok);
$Pstatus = "Product has been deleted"; }?>
this is the error i get
Warning: implode() [function.implode]: Bad arguments. in C:\www\apache\htdocs\admin.php on line 163
NOTE:
The values are there, I did a var_dump and it shows its there. I also echo it out and the it echos the delete array values. I dont know why its having failure with it. By the way, the values are integers, but im not sure if that has anything to do with it