mysqli problem med bind_param()
Jeg har lige installeret php5 med mysqli, men det vil ikke helt fungere.Når jeg prøver at køre koden her fundet på php.net, får jeg en fejl:
Fatal error: Call to a member function bind_param() on a non-object in /var/www...
$mysqli = new mysqli('localhost', 'my_user', 'my_password', 'world');
/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
$stmt = $mysqli->prepare("INSERT INTO CountryLanguage VALUES (?, ?, ?, ?)");
$stmt->bind_param('sssd', $code, $language, $official, $percent);
