Hi php users
i have this code:
<table> <tr> <?php
while ($result = mysql_fetch_assoc($query)){
echo $xxx;
}
?></tr></table>
ok
how do i put that inside a variable?? the final html code
$var = ' <table> <tr> '; while ($result = mysql_fetch_assoc($query)){ $var .= $xxx; } $var .= ' </tr></table> ';
thanx!