+ 2

Please help, how can i get the actual value of "Balance" from the following code.

$res = mysqli_query ($link, "SELECT Balance FROM restration WHERE username = '...';

6th May 2018, 5:33 AM
BAHATI K. KAZIKODI
BAHATI K. KAZIKODI - avatar
4 odpowiedzi
+ 1
next line of code: $row = $res->fetch_assoc(); echo $row['Balance']; If multiple rows are returned: while($row = $res->fetch_assoc()) { echo $row['Balance']."<br />"; }
6th May 2018, 9:29 AM
Adam
Adam - avatar
+ 1
thank you brother
6th May 2018, 10:31 AM
BAHATI K. KAZIKODI
BAHATI K. KAZIKODI - avatar
+ 1
How about safety of these code over mysql injection?
6th May 2018, 5:12 PM
BAHATI K. KAZIKODI
BAHATI K. KAZIKODI - avatar