Advertisement
michaelyuen

Untitled

May 6th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. if ($stmt = $link->prepare("SELECT `Balance` FROM table WHERE `username` = ?")) {
  3.     $stmt->bind_param("s", $username);
  4.     $username = '...';
  5.     if ($stmt->execute()) {
  6.     $result = $stmt->get_result();
  7.     if ($result->num_rows > 0) {
  8.         while ($row = $result->fetch_assoc()) {
  9.             echo $row['Balance'];
  10.         }      
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement