PHP bind_param not defined [duplicate]
问题 This question already has answers here : Fatal error: Call to undefined method mysqli::bind_param() in (3 answers) Closed 4 years ago . I am working in MAMP trying to make a login function. My connection code is: $servername = "localhost"; $username = "root"; $password = "root"; $db = "world"; $mysqli = new mysqli($servername, $username, $password, $db); if($mysqli->connect_error){ die("Connection failed: " . $conn->connect_error); } My login function: if (isset($_POST['email'], $_POST['p']))