Lines Matching refs:stmt
79 $stmt = $db->prepare('SELECT id, label FROM test WHERE id > ? ORDER BY id ASC LIMIT 2');
81 if (!$stmt->bindParam(1, $in))
83 $stmt->errorCode(), var_export($stmt->errorInfo(), true));
85 $stmt->execute();
88 if (!$stmt->bindColumn(1, $id, PDO::PARAM_INT))
90 $stmt->errorCode(), var_export($stmt->errorInfo(), true));
92 if (!$stmt->bindColumn(2, $label, PDO::PARAM_STR))
94 $stmt->errorCode(), var_export($stmt->errorInfo(), true));
96 while ($stmt->fetch(PDO::FETCH_BOUND))
102 $stmt->closeCursor();
103 $stmt->execute();