laurisnet Posted October 13, 2005 Report Share Posted October 13, 2005 Jautajums sekojosh: Kaa iespeejams no mysql vaicaajuma rezultaata ( $row['mails'] ) visus datus ielikt ieksh array(), taa, lai katrs tabulaa esohais mails atdaliitos ar "," (komatu)? Un pec tam sho array pieliidzinu mainigajam, piemeram $CC? Gala rezultaataa tas vareetu izskatiities taa: $CC = "janis@localhost, juris@localhost, valdis@localhost"; Protams, shajaa $CC nebuus shie triss maili, bet vairaak un tos noteikti jaatdala ar komatu! Kads noteikti ir saskaaries ar shaadu probleemu un to atrisinaajis, ludzu paliidziet. Link to comment Share on other sites More sharing options...
Delfins Posted October 13, 2005 Report Share Posted October 13, 2005 $mails = Array(); while ( $row .. ) { $mails[trim($row['mail'])] = trim($row['mail']); } $cc = implode( ',', $mails ); Link to comment Share on other sites More sharing options...
Recommended Posts