If your gonna design mods using $htmlout isn't to bad gets annoying so does print echo so sometimes, I use php then wrap it around the html kinda like:
Code:
<?php
$sql = "";
while($raw = mysqli_fetch_assoc($sql)){
?>
<text><?php echo $raw["username"]; ?><text>
<?php } ?>
something like that gets messy but works in time lol