View difference between Paste ID: 7Xh9SS2U and m5TcfKA4
SHOW: | | - or go back to the newest paste.
1
<?php
2-
if ($result = mysqli_query($con, "SELECT `Balance` FROM table WHERE `username` = '...'") {
2+
if ($result = mysqli_query($link, "SELECT `Balance` FROM table WHERE `username` = '...'") {
3
	if (mysqli_num_rows($result) > 0) {
4
		while ($row = mysqli_fetch_assoc($result) {
5
			echo $row['Balance'];
6
		}
7
	}
8
}