Lines Matching refs:link
16 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
19 if (!have_innodb($link))
20 die(sprintf("Needs InnoDB support, [%d] %s", $link->errno, $link->error));
26 $res = mysqli_query($link, "SELECT 'dumped by the parent' AS message");
52 if (@mysqli_query($link, "SELECT id FROM test WHERE id = 1"))
54 else if ((($errno = mysqli_errno($link)) == 0) || ('' == ($error = mysqli_error($link))))
58 mysqli_close($link);
59 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
64 if (!mysqli_query($link, "DROP TABLE IF EXISTS messages"))
65 printf("[006] [%d] %s\n", mysqli_error($link), mysqli_errno($link));
67 if (!mysqli_query($link, "CREATE TABLE messages(
73 printf("[007] [%d] %s\n", mysqli_error($link), mysqli_errno($link));
75 mysqli_autocommit($link, false);
76 …if (!$res = mysqli_query($link, "SELECT id, label FROM test ORDER BY id ASC LIMIT 3", MYSQLI_USE_R…
77 printf("[008] [%d] %s\n", mysqli_error($link), mysqli_errno($link));
125 if (!mysqli_query($plink, sprintf($sql, 'stop')) || !mysqli_commit($link))
168 … printf("[013] Parent cannot fetch row %d\n", $num_rows, mysqli_errno($link), mysqli_error($link));
210 mysqli_close($link);
212 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
216 if (!$res = mysqli_query($link, "SELECT sender, msg FROM messages ORDER BY msg_id ASC"))
217 printf("[019] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
228 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
231 if (!mysqli_query($link, "DROP TABLE IF EXISTS test"))
232 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
234 if (!mysqli_query($link, "DROP TABLE IF EXISTS messages"))
235 printf("[c003] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
237 mysqli_close($link);