Lines Matching refs:stmt
25 if (!$stmt = mysqli_prepare($link, 'CALL p(@version)'))
28 if (!mysqli_stmt_execute($stmt))
29 …printf("[012] Cannot execute CALL, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
32 if (!mysqli_stmt_execute($stmt))
33 …printf("[013] Cannot execute CALL, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
35 if (!mysqli_stmt_close($stmt))
36 …ntf("[014] Cannot close statement, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
38 if (!$stmt = mysqli_prepare($link, 'SELECT @version AS _version'))
41 if (!mysqli_stmt_execute($stmt))
42 …intf("[016] Cannot execute SELECT, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
45 if (!mysqli_stmt_bind_result($stmt, $version) ||
46 !mysqli_stmt_fetch($stmt))
47 printf("[017] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
52 mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
54 mysqli_stmt_free_result($stmt);
55 mysqli_stmt_close($stmt);
69 if (!$stmt = mysqli_prepare($link, 'CALL p(@version)'))
72 if (!mysqli_stmt_execute($stmt))
73 …printf("[021] Cannot execute CALL, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
75 if (!mysqli_stmt_close($stmt))
76 …ntf("[022] Cannot close statement, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
78 if (!$stmt = mysqli_prepare($link, 'SELECT @version AS _version'))
81 if (!mysqli_stmt_execute($stmt))
82 …intf("[024] Cannot execute SELECT, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
84 if (!$res = mysqli_stmt_get_result($stmt))
85 …intf("[025] Cannot get result set, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
90 mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
93 mysqli_stmt_close($stmt);
107 if (!$stmt = mysqli_prepare($link, "CALL p('myversion', @version)"))
110 if (!mysqli_stmt_execute($stmt))
111 …printf("[030] Cannot execute CALL, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
113 if (!mysqli_stmt_close($stmt))
114 …ntf("[031] Cannot close statement, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
116 if (!$stmt = mysqli_prepare($link, 'SELECT @version AS _version'))
119 if (!mysqli_stmt_execute($stmt))
120 …intf("[033] Cannot execute SELECT, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
123 if (!mysqli_stmt_bind_result($stmt, $version) ||
124 !mysqli_stmt_fetch($stmt))
125 printf("[034] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
130 mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
132 mysqli_stmt_free_result($stmt);
133 mysqli_stmt_close($stmt);
145 if (!$stmt = mysqli_prepare($link, 'CALL p(?, @version)'))
149 if (!mysqli_stmt_bind_param($stmt, 's', $version))
150 …[039] Cannot bind input parameter, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
152 if (!mysqli_stmt_execute($stmt))
153 …printf("[040] Cannot execute CALL, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
155 if (!mysqli_stmt_close($stmt))
156 …ntf("[041] Cannot close statement, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
158 if (!$stmt = mysqli_prepare($link, 'SELECT @version AS _version'))
161 if (!mysqli_stmt_execute($stmt))
162 …intf("[043] Cannot execute SELECT, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
165 if (!mysqli_stmt_bind_result($stmt, $version) ||
166 !mysqli_stmt_fetch($stmt))
167 printf("[044] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
172 mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
174 mysqli_stmt_free_result($stmt);
175 mysqli_stmt_close($stmt);