25.03.2015, 20:01
I'm stumped. Can't figure this out, looked on ****** for about 45 minutes and can't find anything matching this.
For some reason, putting my query in a while loop still doesn't want to fetch.
For some reason, putting my query in a while loop still doesn't want to fetch.
PHP код:
$query = "SELECT * FROM `users` WHERE `username` = '$username' AND `password` = '$password'";
$run = mysqli_query($con, $query);
$check = mysqli_num_rows($run);
while($row = mysqli_fetch_assoc($run)) {
$activation = $row['activate'];
}