Skip to content

Instantly share code, notes, and snippets.

@C0D4-101
Created January 27, 2021 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save C0D4-101/a839c30641782d82fb857ed884a1d6f0 to your computer and use it in GitHub Desktop.
Save C0D4-101/a839c30641782d82fb857ed884a1d6f0 to your computer and use it in GitHub Desktop.
neemsvalu
<?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