So i have done my whole project using mysqli prepared statements.Now my hosting providers are saying that "mysqlnd is not supported in our cloud servers". My code looks like
$stmt = $con->prepare("SELECT * FROM hr_admin WHERE email = ? AND password = ? ");
$stmt->bind_param('ss', $_POST['username'], $_POST['password']);
$stmt->execute();
$result = $stmt->get_result();
if ($result->num_rows > "0")
{
$member = $result->fetch_assoc();
I really need a alternative for this code.Please don't mark as duplicate because i search whole but could not find a proper replacement.I got replacements for get_result()
& $result->fetch_assoc();
but not for ($result->num_rows > "0")
. I want to use PDO
but as my whole project is in this. I badly need help.