Lines Matching refs:stmt

21     if (!$stmt = mysqli_stmt_init($link))
24 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 1"))
25 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
27 if (!mysqli_stmt_execute($stmt))
28 printf("[006] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
30 … if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
32 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
39 if (false !== ($res = mysqli_stmt_get_result($stmt))) {
41 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
44 mysqli_stmt_execute($stmt);
45 … if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
47 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
54 mysqli_stmt_close($stmt);
56 if (!($stmt = mysqli_stmt_init($link)) ||
57 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") ||
58 !mysqli_stmt_execute($stmt))
59 printf("[010] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
62 if (!mysqli_stmt_bind_result($stmt, $id, $label))
63 printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
65 if (!mysqli_stmt_fetch($stmt))
66 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
68 if (false !== ($res = mysqli_stmt_get_result($stmt))) {
70 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
73 mysqli_stmt_close($stmt);
75 if (!($stmt = mysqli_stmt_init($link)) ||
76 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") ||
77 !mysqli_stmt_execute($stmt))
78 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
80 if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
82 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
86 if (!mysqli_stmt_bind_result($stmt, $id, $label))
87 printf("[016] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
89 if (!mysqli_stmt_fetch($stmt))
90 printf("[017] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
92 mysqli_stmt_close($stmt);
94 if (!($stmt = mysqli_stmt_init($link)) ||
95 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") ||
96 !mysqli_stmt_execute($stmt))
97 printf("[018] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
99 if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
101 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
105 if (!mysqli_stmt_bind_result($stmt, $id, $label))
106 printf("[020] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
113 mysqli_stmt_close($stmt);
115 if (!($stmt = mysqli_stmt_init($link)) ||
116 !mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2") ||
117 !mysqli_stmt_execute($stmt))
118 printf("[022] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
120 if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) {
122 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
131 mysqli_stmt_close($stmt);
135 mysqli_stmt_get_result($stmt);