Lines Matching refs:stmt
29 if (!$stmt = mysqli_prepare($link, 'CALL p(@version)'))
32 if (!mysqli_stmt_execute($stmt))
33 …printf("[012] Cannot execute CALL, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
36 if (!mysqli_stmt_execute($stmt))
37 …printf("[013] Cannot execute CALL, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
39 if (!mysqli_stmt_close($stmt))
40 …ntf("[014] Cannot close statement, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
42 if (!$stmt = mysqli_prepare($link, 'SELECT @version AS _version'))
45 if (!mysqli_stmt_execute($stmt))
46 …intf("[016] Cannot execute SELECT, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
49 if (!mysqli_stmt_bind_result($stmt, $version) ||
50 !mysqli_stmt_fetch($stmt))
51 printf("[017] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
56 mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
58 mysqli_stmt_free_result($stmt);
59 mysqli_stmt_close($stmt);
73 if (!$stmt = mysqli_prepare($link, 'CALL p(@version)'))
76 if (!mysqli_stmt_execute($stmt))
77 …printf("[021] Cannot execute CALL, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
79 if (!mysqli_stmt_close($stmt))
80 …ntf("[022] Cannot close statement, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
82 if (!$stmt = mysqli_prepare($link, 'SELECT @version AS _version'))
85 if (!mysqli_stmt_execute($stmt))
86 …intf("[024] Cannot execute SELECT, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
88 if (!$res = mysqli_stmt_get_result($stmt))
89 …intf("[025] Cannot get result set, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
94 mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
97 mysqli_stmt_close($stmt);
111 if (!$stmt = mysqli_prepare($link, "CALL p('myversion', @version)"))
114 if (!mysqli_stmt_execute($stmt))
115 …printf("[030] Cannot execute CALL, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
117 if (!mysqli_stmt_close($stmt))
118 …ntf("[031] Cannot close statement, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
120 if (!$stmt = mysqli_prepare($link, 'SELECT @version AS _version'))
123 if (!mysqli_stmt_execute($stmt))
124 …intf("[033] Cannot execute SELECT, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
127 if (!mysqli_stmt_bind_result($stmt, $version) ||
128 !mysqli_stmt_fetch($stmt))
129 printf("[034] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
134 mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
136 mysqli_stmt_free_result($stmt);
137 mysqli_stmt_close($stmt);
149 if (!$stmt = mysqli_prepare($link, 'CALL p(?, @version)'))
153 if (!mysqli_stmt_bind_param($stmt, 's', $version))
154 …[039] Cannot bind input parameter, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
156 if (!mysqli_stmt_execute($stmt))
157 …printf("[040] Cannot execute CALL, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
159 if (!mysqli_stmt_close($stmt))
160 …ntf("[041] Cannot close statement, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
162 if (!$stmt = mysqli_prepare($link, 'SELECT @version AS _version'))
165 if (!mysqli_stmt_execute($stmt))
166 …intf("[043] Cannot execute SELECT, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
169 if (!mysqli_stmt_bind_result($stmt, $version) ||
170 !mysqli_stmt_fetch($stmt))
171 printf("[044] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
176 mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
178 mysqli_stmt_free_result($stmt);
179 mysqli_stmt_close($stmt);