Lines Matching refs:stmt
25 $stmt = $db->prepare("INSERT INTO test(id, label) VALUES (100, ':placeholder')");
31 $stmt->execute(array(':placeholder' => 'row1'));
32 if ('00000' !== $stmt->errorCode())
34 var_export($stmt->errorCode(), true),
35 var_export($stmt->errorInfo(), true));
38 $stmt = $db->prepare('SELECT id, label FROM test');
39 $stmt->execute();
40 var_dump($stmt->fetchAll(PDO::FETCH_ASSOC));
48 $stmt = $db->prepare("INSERT INTO test(id, label) VALUES(101, ':placeholder')");
50 $stmt->execute(array(':placeholder' => 'row1'));
52 if ('00000' !== $stmt->errorCode())
54 var_export($stmt->errorCode(), true),
55 var_export($stmt->errorInfo(), true));
58 $stmt = $db->prepare('SELECT id, label FROM test ORDER BY id');
59 $stmt->execute();
60 var_dump($stmt->fetchAll(PDO::FETCH_ASSOC));