Lines Matching refs:stmt
31 if (!$stmt = mysqli_stmt_init($link))
34 if (!is_null($tmp = @mysqli_stmt_get_result($stmt, "foo")))
37 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 1"))
38 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
40 if (!mysqli_stmt_execute($stmt))
41 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
43 if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
45 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
52 if (false !== ($res = mysqli_stmt_get_result($stmt))) {
54 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
57 mysqli_stmt_execute($stmt);
58 if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
60 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
67 mysqli_stmt_close($stmt);
69 if (!($stmt = mysqli_stmt_init($link)) ||
70 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") ||
71 !mysqli_stmt_execute($stmt))
72 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
75 if (!mysqli_stmt_bind_result($stmt, $id, $label))
76 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
78 if (!mysqli_stmt_fetch($stmt))
79 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
81 if (false !== ($res = mysqli_stmt_get_result($stmt))) {
83 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
86 mysqli_stmt_close($stmt);
88 if (!($stmt = mysqli_stmt_init($link)) ||
89 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") ||
90 !mysqli_stmt_execute($stmt))
91 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
93 if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
95 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
99 if (!mysqli_stmt_bind_result($stmt, $id, $label))
100 printf("[016] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
102 if (!mysqli_stmt_fetch($stmt))
103 printf("[017] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
105 mysqli_stmt_close($stmt);
107 if (!($stmt = mysqli_stmt_init($link)) ||
108 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") ||
109 !mysqli_stmt_execute($stmt))
110 printf("[018] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
112 if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
114 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
118 if (!mysqli_stmt_bind_result($stmt, $id, $label))
119 printf("[020] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
126 mysqli_stmt_close($stmt);
128 if (!($stmt = mysqli_stmt_init($link)) ||
129 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") ||
130 !mysqli_stmt_execute($stmt))
131 printf("[022] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
133 if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
135 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
144 mysqli_stmt_close($stmt);
147 if (NULL !== ($res = mysqli_stmt_get_result($stmt))) {