Lines Matching refs:res
21 $res = $db->prepare('SELECT foo from test where bar = ?');
24 $res->bindValue(1, false, PDO::PARAM_BOOL);
25 if (!$res->execute())
26 print_r($res->errorInfo());
28 print_r($res->fetchAll(PDO::FETCH_ASSOC));
31 $res->bindValue(1, true, PDO::PARAM_BOOL);
32 if (!$res->execute())
33 print_r($res->errorInfo());
35 print_r($res->fetchAll(PDO::FETCH_ASSOC));
40 if (!$res->execute(array(true)))
41 print_r($res->errorInfo());
43 print_r($res->fetchAll(PDO::FETCH_ASSOC));
47 if (!$res->execute(array(false)))
48 print_r($res->errorInfo());
50 print_r($res->fetchAll(PDO::FETCH_ASSOC));
56 $res = $db->prepare('SELECT foo from test where bar = ?', array(
60 $res->bindValue(1, false, PDO::PARAM_BOOL);
61 if (!$res->execute())
62 print_r($res->errorInfo());
64 print_r($res->fetchAll(PDO::FETCH_ASSOC));
67 $res->bindValue(1, true, PDO::PARAM_BOOL);
68 if (!$res->execute())
69 print_r($res->errorInfo());
71 print_r($res->fetchAll(PDO::FETCH_ASSOC));
76 if (!$res->execute(array(true)))
77 print_r($res->errorInfo());
79 print_r($res->fetchAll(PDO::FETCH_ASSOC));
83 if (!$res->execute(array(false))) {
84 $err = $res->errorInfo();
89 print_r($res->fetchAll(PDO::FETCH_ASSOC));