Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function admin_check_countRows($username,$password) {
- $query = "SELECT * FROM adminpanel WHERE username=? AND password=?";
- include '../mysqlsettings.php';
- $con = mysqli_connect($mysqlhost,$mysqluser,$mysqlpass,$mysqltable) or die ('No connection');
- $stmt = mysqli_prepare($con,$query) or die("Invalid query");
- mysqli_stmt_bind_param($stmt,'ss',$username,$password);
- mysqli_stmt_execute($stmt);
- mysqli_stmt_bind_result($stmt,$count);
- mysqli_stmt_fetch($stmt);
- mysqli_stmt_close($stmt);
- return $count;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement