Lines Matching refs:link

13 	$link   = NULL;
19 if (NULL !== ($tmp = @mysql_fetch_field($link)))
24 $version = mysql_get_server_info($link);
29 if (!$res = mysql_query("SELECT id AS ID, label FROM test AS TEST ORDER BY id LIMIT 1", $link)) {
30 printf("[004] [%d] %s\n", mysql_errno($link), mysql_error($link));
39 if (!$res = mysql_query("SELECT id AS ID, label FROM test AS TEST ORDER BY id LIMIT 1", $link)) {
40 printf("[005] [%d] %s\n", mysql_errno($link), mysql_error($link));
84 if (!mysql_query("DROP TABLE IF EXISTS test", $link))
85 printf("[008/%s] [%d] %s\n", $type_name, mysql_errno($link), mysql_error($link));
86 …ql_query(sprintf("CREATE TABLE test(id INT, label %s) ENGINE = %s", $type_name, $engine), $link)) {
96 if (!mysql_query($insert, $link)) {
97 if (1366 == mysql_errno($link)) {
101 printf("[009/%s] [%d] %s\n", $type_name, mysql_errno($link), mysql_error($link));
104 if (!$res = mysql_query("SELECT id, label FROM test", $link)) {
105 printf("[010/%s] [%d] %s\n", $type_name, mysql_errno($link), mysql_error($link));
109 printf("[011/%s] [%d] %s\n", $type_name, mysql_errno($link), mysql_error($link));
118 if (!mysql_query("DROP TABLE IF EXISTS test", $link))
119 printf("[013] [%d] %s\n", mysql_errno($link), mysql_error($link));
122 printf("[014] [%d] %s\n", mysql_errno($link), mysql_error($link));
125 printf("[015] [%d] %s\n", mysql_errno($link), mysql_error($link));
127 if (!$res = mysql_query("SELECT id FROM test", $link)) {
128 printf("[016] [%d] %s\n", mysql_errno($link), mysql_error($link));
134 if (!$res = mysql_query("SELECT id FROM test", $link)) {
135 printf("[017] [%d] %s\n", mysql_errno($link), mysql_error($link));
151 mysql_close($link);