How to put a while loop in a variable?
===

Well, it aren't more then the code actually!

    $toq = mysql_query("SELECT * FROM users") 
    or die(mysql_error());  
    $to = while($row = mysql_fetch_array($toq)) { echo "".$row['mail'].", "; };
    echo $to;`enter code here`