Lines Matching refs:link

14     if (!$res = mysqli_query($link, "SELECT * FROM test ORDER BY id LIMIT 5")) {
15 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
35 … if (!$res = mysqli_query($link, "SELECT 1 AS a, 2 AS a, 3 AS c, 4 AS C, NULL AS d, true AS e")) {
36 printf("[010] Cannot run query, [%d] %s\n", mysqli_errno($link), $mysqli_error($link));
42 if (!$res = mysqli_query($link, "SELECT 1 AS a, 2 AS b, 3 AS c, 4 AS C")) {
44 mysqli_errno($link), $mysqli_error($link));
66 …function func_mysqli_fetch_array($link, $engine, $sql_type, $sql_value, $php_value, $offset, $rege…
68 if (!mysqli_query($link, "DROP TABLE IF EXISTS test")) {
69 printf("[%04d] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link));
73 …if (!mysqli_query($link, $sql = sprintf("CREATE TABLE test(id INT NOT NULL, label %s, PRIMARY KEY(…
79 … if (!mysqli_query($link, $sql = sprintf("INSERT INTO test(id, label) VALUES (1, NULL)"))) {
80 printf("[%04d] [%d] %s\n", $offset + 1, mysqli_errno($link), mysqli_error($link));
85 … if (!mysqli_query($link, $sql = "INSERT INTO test(id, label) VALUES (1, '" . $sql_value . "')")) {
86 … printf("[%04ds] [%d] %s - %s\n", $offset + 1, mysqli_errno($link), mysqli_error($link), $sql);
90 …if (!mysqli_query($link, $sql = sprintf("INSERT INTO test(id, label) VALUES (1, '%d')", $sql_value…
91 … printf("[%04di] [%d] %s\n", $offset + 1, mysqli_errno($link), mysqli_error($link));
96 if (!$res = mysqli_query($link, "SELECT id, label FROM test")) {
97 printf("[%04d] [%d] %s\n", $offset + 2, mysqli_errno($link), mysqli_error($link));
102 printf("[%04d] [%d] %s\n", $offset + 3, mysqli_errno($link), mysqli_error($link));
111 … gettype($row['label']), $row['label'], mysqli_errno($link), mysqli_error($link));
121 … gettype($row['label']), $row['label'], mysqli_errno($link), mysqli_error($link));
135 … gettype($row['label']), $row['label'], mysqli_errno($link), mysqli_error($link));
151 func_mysqli_fetch_array($link, $engine, "TINYINT", -11, "-11", 20);
152 func_mysqli_fetch_array($link, $engine, "TINYINT", NULL, NULL, 30);
153 func_mysqli_fetch_array($link, $engine, "TINYINT UNSIGNED", 1, "1", 40);
154 func_mysqli_fetch_array($link, $engine, "TINYINT UNSIGNED", NULL, NULL, 50);
156 func_mysqli_fetch_array($link, $engine, "BOOL", 1, "1", 60);
157 func_mysqli_fetch_array($link, $engine, "BOOL", NULL, NULL, 70);
158 func_mysqli_fetch_array($link, $engine, "BOOLEAN", 0, "0", 80);
159 func_mysqli_fetch_array($link, $engine, "BOOLEAN", NULL, NULL, 90);
161 func_mysqli_fetch_array($link, $engine, "SMALLINT", -32768, "-32768", 100);
162 func_mysqli_fetch_array($link, $engine, "SMALLINT", 32767, "32767", 110);
163 func_mysqli_fetch_array($link, $engine, "SMALLINT", NULL, NULL, 120);
164 func_mysqli_fetch_array($link, $engine, "SMALLINT UNSIGNED", 65535, "65535", 130);
165 func_mysqli_fetch_array($link, $engine, "SMALLINT UNSIGNED", NULL, NULL, 140);
167 func_mysqli_fetch_array($link, $engine, "MEDIUMINT", -8388608, "-8388608", 150);
168 func_mysqli_fetch_array($link, $engine, "MEDIUMINT", 8388607, "8388607", 160);
169 func_mysqli_fetch_array($link, $engine, "MEDIUMINT", NULL, NULL, 170);
170 func_mysqli_fetch_array($link, $engine, "MEDIUMINT UNSIGNED", 16777215, "16777215", 180);
171 func_mysqli_fetch_array($link, $engine, "MEDIUMINT UNSIGNED", NULL, NULL, 190);
173 func_mysqli_fetch_array($link, $engine, "INTEGER", -2147483648, "-2147483648", 200);
174 func_mysqli_fetch_array($link, $engine, "INTEGER", 2147483647, "2147483647", 210);
175 func_mysqli_fetch_array($link, $engine, "INTEGER", NULL, NULL, 220);
176 func_mysqli_fetch_array($link, $engine, "INTEGER UNSIGNED", "4294967295", "4294967295", 230);
177 func_mysqli_fetch_array($link, $engine, "INTEGER UNSIGNED", NULL, NULL, 240);
179 …func_mysqli_fetch_array($link, $engine, "BIGINT", "-9223372036854775808", "-9223372036854775808", …
180 func_mysqli_fetch_array($link, $engine, "BIGINT", NULL, NULL, 260);
181 …func_mysqli_fetch_array($link, $engine, "BIGINT UNSIGNED", "18446744073709551615", "18446744073709…
182 func_mysqli_fetch_array($link, $engine, "BIGINT UNSIGNED", NULL, NULL, 280);
184 …func_mysqli_fetch_array($link, $engine, "FLOAT", (string)(-9223372036854775808 - 1.1), "-9.22337e+…
185 func_mysqli_fetch_array($link, $engine, "FLOAT", NULL, NULL, 300);
186 …func_mysqli_fetch_array($link, $engine, "FLOAT UNSIGNED", (string)(18446744073709551615 + 1.1), "1…
187 func_mysqli_fetch_array($link, $engine, "FLOAT UNSIGNED ", NULL, NULL, 320);
189 func_mysqli_fetch_array($link, $engine, "DOUBLE(10,2)", "-99999999.99", "-99999999.99", 330);
190 func_mysqli_fetch_array($link, $engine, "DOUBLE(10,2)", NULL, NULL, 340);
191 …func_mysqli_fetch_array($link, $engine, "DOUBLE(10,2) UNSIGNED", "99999999.99", "99999999.99", 350…
192 func_mysqli_fetch_array($link, $engine, "DOUBLE(10,2) UNSIGNED", NULL, NULL, 360);
194 func_mysqli_fetch_array($link, $engine, "DECIMAL(10,2)", "-99999999.99", "-99999999.99", 370);
195 func_mysqli_fetch_array($link, $engine, "DECIMAL(10,2)", NULL, NULL, 380);
196 func_mysqli_fetch_array($link, $engine, "DECIMAL(10,2)", "99999999.99", "99999999.99", 390);
197 func_mysqli_fetch_array($link, $engine, "DECIMAL(10,2)", NULL, NULL, 400);
201 func_mysqli_fetch_array($link, $engine, "DATE",$date, $date, 410);
202 func_mysqli_fetch_array($link, $engine, "DATE NOT NULL",$date, $date, 420);
203 func_mysqli_fetch_array($link, $engine, "DATE", NULL, NULL, 430);
206 func_mysqli_fetch_array($link, $engine, "DATETIME", $date, $date, 440);
207 func_mysqli_fetch_array($link, $engine, "DATETIME NOT NULL", $date, $date, 450);
208 func_mysqli_fetch_array($link, $engine, "DATETIME", NULL, NULL, 460);
209 func_mysqli_fetch_array($link, $engine, "TIMESTAMP", $date, $date, 470);
212 func_mysqli_fetch_array($link, $engine, "TIME", $date, $date, 480);
213 func_mysqli_fetch_array($link, $engine, "TIME NOT NULL", $date, $date, 490);
214 func_mysqli_fetch_array($link, $engine, "TIME", NULL, NULL, 500);
216 func_mysqli_fetch_array($link, $engine, "YEAR", @date('Y'), @date('Y'), 510);
217 func_mysqli_fetch_array($link, $engine, "YEAR NOT NULL", @date('Y'), @date('Y'), 520);
218 func_mysqli_fetch_array($link, $engine, "YEAR", NULL, NULL, 530);
221 func_mysqli_fetch_array($link, $engine, "CHAR(1)", "a", "a", 540);
222 func_mysqli_fetch_array($link, $engine, "CHAR(255)", $string255, $string255, 550);
223 func_mysqli_fetch_array($link, $engine, "CHAR(1) NOT NULL", "a", "a", 560);
224 func_mysqli_fetch_array($link, $engine, "CHAR(1)", NULL, NULL, 570);
227 func_mysqli_fetch_array($link, $engine, "VARCHAR(1)", "a", "a", 580);
228 func_mysqli_fetch_array($link, $engine, "VARCHAR(255)", $string255, $string255, 590);
229 func_mysqli_fetch_array($link, $engine, "VARCHAR(65400)", $string65k, $string65k, 600);
230 func_mysqli_fetch_array($link, $engine, "VARCHAR(1) NOT NULL", "a", "a", 610);
231 func_mysqli_fetch_array($link, $engine, "VARCHAR(1)", NULL, NULL, 620);
233 func_mysqli_fetch_array($link, $engine, "BINARY(1)", "a", "a", 630, null, true);
234 … func_mysqli_fetch_array($link, $engine, "BINARY(2)", chr(0) . "a", chr(0) . "a", 640, null, true);
235 func_mysqli_fetch_array($link, $engine, "BINARY(1) NOT NULL", "b", "b", 650, null, true);
236 func_mysqli_fetch_array($link, $engine, "BINARY(1)", NULL, NULL, 660, null, true);
238 func_mysqli_fetch_array($link, $engine, "VARBINARY(1)", "a", "a", 670, null, true);
239 …func_mysqli_fetch_array($link, $engine, "VARBINARY(2)", chr(0) . "a", chr(0) . "a", 680, null, tru…
240 func_mysqli_fetch_array($link, $engine, "VARBINARY(1) NOT NULL", "b", "b", 690, null, true);
241 func_mysqli_fetch_array($link, $engine, "VARBINARY(1)", NULL, NULL, 700, null, true);
243 func_mysqli_fetch_array($link, $engine, "TINYBLOB", "a", "a", 710, null, true);
244 … func_mysqli_fetch_array($link, $engine, "TINYBLOB", chr(0) . "a", chr(0) . "a", 720, null, true);
245 func_mysqli_fetch_array($link, $engine, "TINYBLOB NOT NULL", "b", "b", 730, null, true);
246 func_mysqli_fetch_array($link, $engine, "TINYBLOB", NULL, NULL, 740, null, true);
248 func_mysqli_fetch_array($link, $engine, "TINYTEXT", "a", "a", 750);
249 func_mysqli_fetch_array($link, $engine, "TINYTEXT NOT NULL", "a", "a", 760);
250 func_mysqli_fetch_array($link, $engine, "TINYTEXT", NULL, NULL, 770);
252 func_mysqli_fetch_array($link, $engine, "BLOB", "a", "a", 780, null, true);
253 func_mysqli_fetch_array($link, $engine, "BLOB", chr(0) . "a", chr(0) . "a", 780, null, true);
254 func_mysqli_fetch_array($link, $engine, "BLOB", NULL, NULL, 790, null, true);
256 func_mysqli_fetch_array($link, $engine, "TEXT", "a", "a", 800);
257 func_mysqli_fetch_array($link, $engine, "TEXT", chr(0) . "a", chr(0) . "a", 810);
258 func_mysqli_fetch_array($link, $engine, "TEXT", NULL, NULL, 820);
260 func_mysqli_fetch_array($link, $engine, "MEDIUMBLOB", "a", "a", 830, null, true);
261 …func_mysqli_fetch_array($link, $engine, "MEDIUMBLOB", chr(0) . "a", chr(0) . "a", 840, null, true);
262 func_mysqli_fetch_array($link, $engine, "MEDIUMBLOB", NULL, NULL, 850, null, true);
264 func_mysqli_fetch_array($link, $engine, "MEDIUMTEXT", "a", "a", 860);
265 func_mysqli_fetch_array($link, $engine, "MEDIUMTEXT", chr(0) . "a", chr(0) . "a", 870);
266 func_mysqli_fetch_array($link, $engine, "MEDIUMTEXT", NULL, NULL, 880);
268 func_mysqli_fetch_array($link, $engine, "LONGBLOB", "a", "a", 890, null, true);
269 func_mysqli_fetch_array($link, $engine, "LONGTEXT", chr(0) . "a", chr(0) . "a", 900);
270 func_mysqli_fetch_array($link, $engine, "LONGBLOB", NULL, NULL, 910, null, true);
272 func_mysqli_fetch_array($link, $engine, "ENUM('a', 'b')", "a", "a", 920);
273 func_mysqli_fetch_array($link, $engine, "ENUM('a', 'b')", NULL, NULL, 930);
275 func_mysqli_fetch_array($link, $engine, "SET('a', 'b')", "a", "a", 940);
276 func_mysqli_fetch_array($link, $engine, "SET('a', 'b')", NULL, NULL, 950);
278 mysqli_close($link);