Lines Matching refs:stmt
18 if (!$stmt = mysqli_stmt_init($link))
21 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 1"))
22 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
24 if (!mysqli_stmt_execute($stmt))
25 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
27 … if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
29 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
36 if (false !== ($res = mysqli_stmt_get_result($stmt))) {
38 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
41 mysqli_stmt_execute($stmt);
42 … if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
44 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
51 mysqli_stmt_close($stmt);
53 if (!($stmt = mysqli_stmt_init($link)) ||
54 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") ||
55 !mysqli_stmt_execute($stmt))
56 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
59 if (!mysqli_stmt_bind_result($stmt, $id, $label))
60 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
62 if (!mysqli_stmt_fetch($stmt))
63 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
65 if (false !== ($res = mysqli_stmt_get_result($stmt))) {
67 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
70 mysqli_stmt_close($stmt);
72 if (!($stmt = mysqli_stmt_init($link)) ||
73 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") ||
74 !mysqli_stmt_execute($stmt))
75 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
77 if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
79 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
83 if (!mysqli_stmt_bind_result($stmt, $id, $label))
84 printf("[016] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
86 if (!mysqli_stmt_fetch($stmt))
87 printf("[017] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
89 mysqli_stmt_close($stmt);
91 if (!($stmt = mysqli_stmt_init($link)) ||
92 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") ||
93 !mysqli_stmt_execute($stmt))
94 printf("[018] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
96 if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
98 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
102 if (!mysqli_stmt_bind_result($stmt, $id, $label))
103 printf("[020] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
110 mysqli_stmt_close($stmt);
112 if (!($stmt = mysqli_stmt_init($link)) ||
113 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") ||
114 !mysqli_stmt_execute($stmt))
115 printf("[022] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
117 if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
119 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
128 mysqli_stmt_close($stmt);
132 mysqli_stmt_get_result($stmt);