funkmaster needs help funkyfaucet.tk funky faucet


SUBMITTED BY: Guest

DATE: Nov. 1, 2013, 5:55 a.m.

FORMAT: PHP

SIZE: 1.5 kB

HITS: 853

  1. this is in relation to some information i want to grab from the database and need help achieving what i am envisioning
  2. the site is http://funkyfaucet.tk
  3. if you click the logo in the upper left sidebar, there is a list of the amount of satoshi
  4. next to each amount, i want to show a badge displaying the number of times that amount has been dispensed, and i'd like for that number to be displayed real time, either dynamically without refreshing the page, or statically upon refresh, and i'm assuming the latter would be easier
  5. i just don't know how to go about setting it up... here's what i'm seeing it almost looking like
  6. <?php
  7. echo "<html>
  8. <div class='list of some sort, ul, or ol?'>
  9. <ol(or ul)>
  10. <li><span class='badge badge-info'>" . $rewardOne . "</span> <strong>100 Satoshis</strong></li>
  11. <li><span class='badge badge-info'>" . $rewardTwo . "</span> <strong>200 Satoshis</strong></li>
  12. etc.
  13. </ol(or /ul)>
  14. </div>
  15. </html>";
  16. ?>
  17. i'll put
  18. <?php
  19. array { [
  20. $rewardOne = ("however you would call it from the database? right?";),
  21. $rewardTwo etc
  22. etc
  23. ]
  24. }
  25. ?>
  26. on another page, but i have no idea if i even have the syntax correct or curly brackets in the right places but i definitely don't know how i would go about getting those numbers from the database in the first place
  27. please help
  28. reach me on https://peerbet.org send an in-site email to funkmaster

comments powered by Disqus