Hey!
I'm having trouble imploding a query array! This is the query:
$autores = mysql_query("SELECT d.autor FROM publishing.db_autores d, db_escrito_por de, db_artigos de0 WHERE d.autor_id=de.autor_id AND de.art_id = de0.art_id AND de0.art_id = 8");
while($row = mysql_fetch_array($autores, MYSQL_NUM))
{
$shift = implode (", ", $row);
print $shift;
}
This results: Stephen KingStanley Kubrick
If I test with:
while($row = mysql_fetch_array($autores, MYSQL_NUM))
{
print_r ($row);
}
I get this array:
Array ( [0] => Stephen King ) Array ( [0] => Stanley Kubrick )
They both has associated keys as [0]! I think this is why I cant implode it. Is there any workaround?
Thanks! 🙂