Lines Matching refs:stmt

32 	if (!$stmt = mysqli_stmt_init($link))
35 // stmt object status test
36 if (false !== ($tmp = mysqli_stmt_fetch($stmt)))
39 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id LIMIT 2"))
40 printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
43 if ((NULL !== ($tmp = mysqli_stmt_get_result($stmt))) && (false !== $tmp))
46 if (!mysqli_stmt_execute($stmt))
47 printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
49 if (!mysqli_stmt_store_result($stmt))
50 printf("[008] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
52 if (is_object($tmp = mysqli_stmt_store_result($stmt)))
55 mysqli_stmt_close($stmt);
57 if (!$stmt = mysqli_stmt_init($link))
60 // stmt object status test
61 if (false !== ($tmp = mysqli_stmt_fetch($stmt)))
64 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id LIMIT 2"))
65 printf("[012] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
68 if ((NULL !== ($tmp = mysqli_stmt_get_result($stmt))) && (false !== $tmp))
71 if (!mysqli_stmt_execute($stmt))
72 printf("[014] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
74 if (!is_object($tmp = mysqli_stmt_get_result($stmt)))
78 mysqli_stmt_close($stmt);
80 if (!$stmt = mysqli_stmt_init($link))
83 // stmt object status test
84 if (false !== ($tmp = mysqli_stmt_get_result($stmt)))
87 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id LIMIT 2"))
88 printf("[019] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
90 if (false !== ($tmp = mysqli_stmt_get_result($stmt)))
93 if (!mysqli_stmt_execute($stmt))
94 printf("[023] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
96 if (!is_object($tmp = mysqli_stmt_get_result($stmt)))
99 if (false !== ($tmp = mysqli_stmt_fetch($stmt)))
102 if (true !== ($tmp = mysqli_stmt_bind_result($stmt, $id, $label))) {
103 printf("[026] [%d] [%s]\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
108 if (false !== ($tmp = mysqli_stmt_fetch($stmt)))
111 mysqli_stmt_close($stmt);
113 if (!$stmt = mysqli_stmt_init($link))
116 if (!mysqli_stmt_prepare($stmt, "SELECT id, label FROM test ORDER BY id LIMIT 2"))
117 printf("[033] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
119 if (!mysqli_stmt_execute($stmt))
120 printf("[034] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
124 if (true !== ($tmp = mysqli_stmt_bind_result($stmt, $id, $label)))
127 if (!is_object($tmp = $result = mysqli_stmt_get_result($stmt)))
130 mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
132 if (false !== ($tmp = mysqli_stmt_fetch($stmt)))
134 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
136 printf("[038] [%d] [%s]\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
146 if (false !== ($tmp = mysqli_stmt_get_result($stmt)))
149 mysqli_stmt_close($stmt);
151 if (false !== ($tmp = mysqli_stmt_fetch($stmt)))