Implode function
Posté : 01 juin 2012, 00:41
My php script :
...
$sql = "SELECT note FROM jooml_cdfapa WHERE title='".$result1."';";
$result = mysql_query($sql);
while ($row = mysql_fetch_assoc($result)){
$mail .= $row['note']. ", ";
It gives me ... email1,email2,email3
I want 'email1','email2','email3'
If i use $mail = explode(',', $mail); it will give me as result Array
I am a bit lost,
thanks for help
...
$sql = "SELECT note FROM jooml_cdfapa WHERE title='".$result1."';";
$result = mysql_query($sql);
while ($row = mysql_fetch_assoc($result)){
$mail .= $row['note']. ", ";
It gives me ... email1,email2,email3
I want 'email1','email2','email3'
If i use $mail = explode(',', $mail); it will give me as result Array
I am a bit lost,
thanks for help