Php MDB2 データ抽象化レイヤーを使用しており、準備/バインドを使用して MySql データベースにデータを挿入しようとしています。
<?php
require_once 'MDB2-2.5.0b5/MDB2.php';
// setup
$dsn = 'mysqli://root:@localhost/propeldb';
$options = array ('persistent' => true);
$mdb2 =& MDB2::factory($dsn, $options);
$sql = 'INSERT INTO lb_attributes (attributename, addedby) VALUES (?, ?)';
$statement = $mdb2->prepare($sql);
// figure out the data
$attribute_name = 'resolution';
$added_by = 'Hammett';
// bind the data
$statement->bindParam('attribute_name', $attribute_name);
$statement->bindParam('added_by', $added_by);
// execute and free
$statement->execute();
$statement->free();
これは何もしません。私が何を間違っているのか教えてください。