Lines Matching refs:link

9 $link = mysqli_init();
10 if (!@my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)) {
15 if ($msg = check_local_infile_support($link, $engine))
16 die(sprintf("skip %s, [%d] %s", $msg, $link->errno, $link->error));
18 mysqli_close($link);
28 $link = mysqli_init();
29 if (!my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)) {
33 if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) {
34 …printf("[002] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
37 …if (!mysqli_query($link, 'CREATE TABLE test(id INT, label CHAR(1), PRIMARY KEY(id)) ENGINE=' . $en…
38 … printf("[003] Failed to create test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
44 if (!@mysqli_query($link, sprintf("LOAD DATA LOCAL INFILE '%s'
48 mysqli_real_escape_string($link, $file)))) {
49 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
52 if (!$res = mysqli_query($link, "SELECT * FROM test ORDER BY id"))
53 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
63 mysqli_query($link, "DELETE FROM test");
64 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);