Guest User

Untitled

a guest
May 14th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. <?php
  2. $servername = "localhost";
  3. $username = "root";
  4. $password = '';
  5. $dbname = "db_code";
  6. $conn = new mysqli($servername, $username, $password, $dbname);
  7. $sql = "SELECT Otp FROM otptable";
  8. $result = $conn->query($sql);
  9. if ($result->num_rows > 0) {
  10. while($row = $result->fetch_assoc()) {
  11. echo "Otp: " . $row["Otp"] ."<br>";
  12. x = " . $row["Otp"] .";
  13. }
  14. }
  15. ?>
  16. <body>
  17. <div id="floating-panel">
  18. <input id="latlng" type="text" value="<?php echo $row["otp"]?>">
  19. </body>
Add Comment
Please, Sign In to add comment