I'm extremely dumbfounded. What is the problem? I've copied over the default PHP OOS from http://www.php.net/manual/en/mysqli-stmt.bind-param.php and it keeps throwing errors.
<?php
$mysqli = new mysqli('localhost', 'root', 'hidden', 'hidden');
/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
$stmt = $mysqli->prepare("INSERT INTO users VALUES (?, ?)");
$stmt->bind_param('ss', $name, $password);
$name = "Test";
$password = "Test";
/* execute prepared statement */
$stmt->execute();
printf("%d Row inserted.\n", $stmt->affected_rows);
/* close statement and connection */
$stmt->close();
/* close connection */
$mysqli->close();
?>
Fatal error: Call to a member function bind_param() on a non-object in C:\xampp\htdocs\cms\index.php on line 11