Lines Matching refs:stmt
22 if (!$stmt = mysqli_stmt_init($link))
25 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 1"))
26 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
28 if (!mysqli_stmt_execute($stmt))
29 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
31 … if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
33 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
40 if (false !== ($res = mysqli_stmt_get_result($stmt))) {
42 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
45 mysqli_stmt_execute($stmt);
46 … if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
48 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
55 mysqli_stmt_close($stmt);
57 if (!($stmt = mysqli_stmt_init($link)) ||
58 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") ||
59 !mysqli_stmt_execute($stmt))
60 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
63 if (!mysqli_stmt_bind_result($stmt, $id, $label))
64 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
66 if (!mysqli_stmt_fetch($stmt))
67 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
69 if (false !== ($res = mysqli_stmt_get_result($stmt))) {
71 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
74 mysqli_stmt_close($stmt);
76 if (!($stmt = mysqli_stmt_init($link)) ||
77 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") ||
78 !mysqli_stmt_execute($stmt))
79 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
81 if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
83 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
87 if (!mysqli_stmt_bind_result($stmt, $id, $label))
88 printf("[016] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
90 if (!mysqli_stmt_fetch($stmt))
91 printf("[017] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
93 mysqli_stmt_close($stmt);
95 if (!($stmt = mysqli_stmt_init($link)) ||
96 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") ||
97 !mysqli_stmt_execute($stmt))
98 printf("[018] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
100 if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
102 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
106 if (!mysqli_stmt_bind_result($stmt, $id, $label))
107 printf("[020] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
114 mysqli_stmt_close($stmt);
116 if (!($stmt = mysqli_stmt_init($link)) ||
117 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") ||
118 !mysqli_stmt_execute($stmt))
119 printf("[022] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
121 if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
123 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
132 mysqli_stmt_close($stmt);
136 mysqli_stmt_get_result($stmt);