From 6c62a6211470c65d9a18ad2e6ac0c50105cb876f Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Wed, 24 May 2017 22:07:40 -1000 Subject: [PATCH] testing for results --- gw-login.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gw-login.php b/gw-login.php index ace9f02..b4d7da6 100644 --- a/gw-login.php +++ b/gw-login.php @@ -10,6 +10,8 @@ if ($con->connect_errno > 0){ } $sqllogin = "SELECT * FROM users WHERE users.username = '$username' and password = '$password'"; if ($result = $con->query($sqllogin)){ + $row_cnt = mysqli_num_rows($result); + echo 'there were ' . $row_cnt . ' results!
'; while ($row = $result->fetch_array()){ $uname = $row['username']; $uid = $row['userid'];