Lines Matching refs:link
14 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
16 mysqli_select_db($link, $db);
18 if (!mysqli_query($link,"DROP TABLE IF EXISTS test_bind_fetch"))
19 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
21 if (!mysqli_query($link,"CREATE TABLE test_bind_fetch(c1 char(10), c2 text) ENGINE=" . $engine))
22 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
24 … if (!mysqli_query($link, "INSERT INTO test_bind_fetch VALUES ('1234567890', 'this is a test0')"))
25 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
27 … if (!mysqli_query($link, "INSERT INTO test_bind_fetch VALUES ('1234567891', 'this is a test1')"))
28 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
30 … if (!mysqli_query($link, "INSERT INTO test_bind_fetch VALUES ('1234567892', 'this is a test2')"))
31 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
33 … if (!mysqli_query($link, "INSERT INTO test_bind_fetch VALUES ('1234567893', 'this is a test3')"))
34 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
36 if (!$stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch ORDER BY c1"))
37 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
50 mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch");
51 mysqli_close($link);
57 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
60 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch"))
61 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
63 mysqli_close($link);