Previously I had a Linux hosting package for my website and had the following code
$selectUsersStmt = $connection->prepare("SELECT firstName FROM users WHERE email = ?");
$selectUsersStmt->bind_param('s', $email);
$selectUsersStmt->execute();
$result = $selectUsersStmt->get_result();
It worked fine on the Linux hosting but since switching to CPanel it is now giving a commands out of sync error after the 3rd line.
Is there something in the way I need to prepare my statements that is different with CPanel vs Linux?