getting the following error
Fatal error: Call to a member function bind_param() on boolean in C:\wamp64\www\final\addusers.php on line 8
with such a small amount of code
PHP Code:
<?php
// no need to validate because info is coming from a trusted source
session_start();
$con = new mysqli('localhost', 'root', '', 'pratts_db');
$stmt = $con->prepare("INSERT INTO `users` VALUES(?,?)");
$stmt->bind_param('s', $_POST['email'], $_POST['password']);
$stmt->execute();
?>