Lines Matching refs:link
20 if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket))
24 if (!mysql_query('DROP TABLE IF EXISTS test', $link))
25 printf("[002] [%d] %s\n", mysql_errno($link), mysql_error($link));
27 if (!mysql_query("CREATE TABLE test(a varchar(10))", $link))
28 printf("[003] [%d] %s\n", mysql_errno($link), mysql_error($link));
31 if (!mysql_query(sprintf("INSERT INTO test VALUES('%s')", $str), $link))
32 printf("[004 - %s] [%d] %s\n", $str, mysql_errno($link), mysql_error($link));
36 if (!$res = mysql_query("SELECT a FROM test", $link))
37 printf("[005] [%d] %s\n", mysql_errno($link), mysql_error($link));
45 if (!$res = mysql_query("SELECT a FROM test", $link))
46 printf("[006] [%d] %s\n", mysql_errno($link), mysql_error($link));
52 mysql_close($link);