-
-
Save C0D4-101/a839c30641782d82fb857ed884a1d6f0 to your computer and use it in GitHub Desktop.
neemsvalu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$string = ''; | |
while($row = $db->fetch_assoc($db->result)){ | |
$string .= ' | |
<div class="overlay" align="center"> | |
<p> | |
<a href="#" class="btn btn-effect btn-purple view_data" id="' . $row['id'] . '" style="background:' . $row["color"] . '; height:22px; border: 5; position: absolute; top: ' . $row["pos_top"] . 'px; left: ' . $row["pos_left"] .'px; font-size: 16px;" > | |
' . $row["label"]. ' | |
</a> | |
</p> | |
</div> | |
'; | |
} | |
echo $string; | |
?> | |
--- | |
output: | |
<div class="overlay" align="center"> | |
<p> | |
<a href="#" class="btn btn-effect btn-purple view_data" id="1909" style="background:blue; height:22px; border: 5; position: absolute; top: 515px; left: 1615px; font-size: 16px;" > | |
45 | |
</a> | |
</p> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment