SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | - | if ($stmt = $con->prepare("SELECT `Balance` FROM table WHERE `username` = ?")) { |
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 | } |