Lines Matching refs:link

8 $link = mysqli_init();
9 if (!my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)) {
14 if ($msg = check_local_infile_support($link, $engine))
15 die(sprintf("skip %s, [%d] %s", $msg, $link->errno, $link->error));
17 mysqli_close($link);
27 $link = mysqli_init();
28 if (!my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)) {
32 if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) {
33 …printf("[002] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
36 …if (!mysqli_query($link, 'CREATE TABLE test(id INT, label CHAR(1), PRIMARY KEY(id)) ENGINE=' . $en…
37 printf("[003] Failed to create test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
43 if (!@mysqli_query($link, sprintf("LOAD DATA LOCAL INFILE '%s'
47 mysqli_real_escape_string($link, $file)))) {
48 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
51 if (!$res = mysqli_query($link, "SELECT * FROM test ORDER BY id"))
52 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
62 mysqli_query($link, "DELETE FROM test");
63 mysqli_close($link);
77 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
82 if (!@mysqli_query($link, sprintf("LOAD DATA LOCAL INFILE '%s'
86 mysqli_real_escape_string($link, $file)))) {
87 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
92 if (!$res = mysqli_query($link, "SELECT * FROM test ORDER BY id"))
93 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
102 mysqli_close($link);