Lines Matching refs:link

13     if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
16 if (!$res = mysqli_query($link, "SHOW CHARACTER SET LIKE 'latin%'"))
17 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
24 if (!mysqli_query($link, 'SET NAMES DEFAULT'))
25 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
27 if (!$res = mysqli_query($link, 'SELECT
34 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
37 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
45 mysqli_query($link, sprintf("SET @@character_set_client = '%s'", $charset)))
50 mysqli_query($link, sprintf("SET @@character_connection = '%s'", $charset)))
55 mysqli_query($link, sprintf("SET @@character_set_results = '%s'", $charset)))
60 mysqli_query($link, sprintf("SET @@collation_connection = '%s'", $collation)))
65 mysqli_query($link, sprintf("SET @@collation_database = '%s'", $collation)))
70 mysqli_query($link, sprintf("SET @@collation_server = '%s'", $collation)))
77 if (!$res = mysqli_query($link, 'SELECT
84 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
87 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
94 mysqli_change_user($link, $user, $passwd, $db);
96 if (!$res = mysqli_query($link, 'SELECT
103 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
106 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
125 if (!is_object($charset = mysqli_get_charset($link)))
138 mysqli_close($link);