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);
71 if (!$stmt = mysqli_prepare($link, 'CALL p(@version)'))
74 if (!mysqli_stmt_execute($stmt))
75 …printf("[021] Cannot execute CALL, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
77 if (!mysqli_stmt_close($stmt))
78 …ntf("[022] Cannot close statement, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
80 if (!$stmt = mysqli_prepare($link, 'SELECT @version AS _version'))
83 if (!mysqli_stmt_execute($stmt))
84 …intf("[024] Cannot execute SELECT, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
86 if (!$res = mysqli_stmt_get_result($stmt))
87 …intf("[025] Cannot get result set, [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
92 mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
95 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);