hey,
Im building something that stores email addresses there stored in a database
but if I want to view all the email addresses with a , between them so I want to do this in a array and implode them
<?php
include('config.php');
$sql = "SELECT * FROM emails";
$query = mysql_query($sql);
while($row = mysql_fetch_array($query)){
$array = array($row['emails']);
}
$list = implode(',' , $array);
echo $list;
?>
but he only shows the last email address from the database and all the others are not 'echo-ed'
if someone know a solution please share 😉
Grtz Hysterical