Okay i got something like this set up
$series = mysql_query("SELECT series_id FROM layout_series WHERE series LIKE '%$query%'");
//create blank array
$series_array = array();
while($row = mysql_fetch_array($series)) {
//Add ids to the blank array
$series_id = $row['series_id'];
array_push($series_array, "$series_id");
}
//implode the array by comma
$separated = implode(",", $series_array);
echo $separated;
//select from the table where the array is imploded
$sql_text = "select * from $choice where series_id IN ($separated) $extra";
My problem however, is that it works to a certain extent, but doesn't compute spaces! Like if I type "hello world", the code produces an error!