a guest Jun 15th, 2017 108 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     function admin_check_countRows($username,$password) {
  2.         $query = "SELECT * FROM adminpanel WHERE username=? AND password=?";
  3.         include '../mysqlsettings.php';
  4.         $con = mysqli_connect($mysqlhost,$mysqluser,$mysqlpass,$mysqltable) or die ('No connection');
  5.         $stmt = mysqli_prepare($con,$query) or die("Invalid query");
  6.         mysqli_stmt_bind_param($stmt,'ss',$username,$password);
  7.         mysqli_stmt_execute($stmt);
  8.         mysqli_stmt_bind_result($stmt,$count);
  9.         mysqli_stmt_fetch($stmt);
  10.         mysqli_stmt_close($stmt);
  11.         return $count;
  12.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand