Hi. I have the following code.
I wish to display the content of $result2 as a delimited string . When i run this i get the message
Warning : Bad arguments to implode() i. What am I doing wrong. I thought mysql_fetch_array returns an array. Whay cant I then use imploded on it.
$result2 = mysql_query('SELECT title, cat_id, parent from business_categories_hierachy WHERE parent ="'.$parent.'";');
$result2array = mysql_fetch_array($result2);
echo($result2array);
$comma_separated = implode(",", '$result2array');
echo "$comma_separated";