Cafte, tak riesim jeden problem. Potreboval by som nasledujuci skirpt upravit tak, aby sa mi z DB vypisali emailove adresy userov, vedla nich checkboxy a aby sa mail odoslal iba zaskrtnutym, nemam vsak tusenia ako to ma byt :( prosim help, dikes.
<?php
$result = mysql_query("select * from users order by id ");
while ($vypis = mysql_fetch_array($result) ){
$predmet = "predmet";
$telo = "
TELOOOOOOOOOOOOOOOOOOOOOOOOO
";
$telo = iconv("WINDOWS-1250", "UTF-8", $telo);
$predmet = iconv("WINDOWS-1250", "UTF-8", $predmet);
$zahlavie = "From: tendertrade@tendertrade.sk\r\n";
$zahlavie .= "Content-Type: text/html; charset=UTF-8 \n";
@mail ($vypis["mail"], $predmet, $telo, $zahlavie);
}
@mail ('tendertrade@tendertrade.sk', $predmet, $telo, $zahlavie);
?>