hello. could someone glance at this code and explain to me what I need to do to make it work? I'm trying to separate the results of my query into a comma-separated array. Thx.
$query_records = "SELECT * FROM category";
$records = mysql_query($query_records, $db) or die(mysql_error());
$records_array = mysql_fetch_array($records);
$final_array = implode(',', $records_array);
print_r($final_array);
yields this...
implode(): Bad arguments