Lines Matching refs:link
13 $link = NULL;
18 if (NULL !== ($tmp = @mysql_error($link)))
21 if (!is_null($tmp = @mysql_error($link, 'too many args')))
24 if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket)) {
29 $tmp = mysql_error($link);
31 … string/empty, got %s/%s. [%d] %s\n", gettype($tmp), $tmp, mysql_errno($link), mysql_error($link));
33 if (!mysql_query('DROP TABLE IF EXISTS test', $link)) {
34 printf("[005] Failed to drop old test table: [%d] %s\n", mysql_errno($link), mysql_error($link));
37 mysql_query('SELECT * FROM test', $link);
38 $tmp = mysql_error($link);
40 …doesn't exit], got %s/%s. [%d] %s\n", gettype($tmp), $tmp, mysql_errno($link), mysql_error($link));
47 mysql_close($link);
49 var_dump(mysql_error($link));
51 if ($link = @mysql_connect($host . '_unknown', $user . '_unknown', $passwd, true)) {