Lines Matching refs:link
13 …function bind_twice($link, $engine, $sql_type1, $sql_type2, $bind_type1, $bind_type2, $bind_value1…
15 if (!mysqli_query($link, "DROP TABLE IF EXISTS test")) {
16 printf("[%03d + 1] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link));
19 mysqli_autocommit($link, true);
22 if (!mysqli_query($link, $sql)) {
23 printf("[%03d + 2] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link));
27 if (!$stmt = mysqli_stmt_init($link)) {
28 printf("[%03d + 3] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link));
57 if (!$res = mysqli_query($link, "SELECT col1, col2 FROM test")) {
58 printf("[%03d + 9] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link));
63 …Expecting 2 rows, got %d rows [%d] %s\n", $offset, $tmp, mysqli_errno($link), mysqli_error($link));
71 mysqli_errno($link), mysqli_error($link));
80 mysqli_errno($link), mysqli_error($link));
87 bind_twice($link, $engine, 'CHAR(1)', 'CHAR(1)', 's', 's', 'a', 'b', 10);
88 bind_twice($link, $engine, 'INT', 'INT', 'i', 'i', 1, 2, 20);
89 bind_twice($link, $engine, 'FLOAT', 'FLOAT', 'd', 'd', 1.01, 1.02, 30);
92 bind_twice($link, $engine, 'CHAR(1)', 'CHAR(1)', 's', 's', 1, 2, 40);
94 bind_twice($link, $engine, 'INT', 'INT', 'i', 'i', '1', '2', 50);
96 bind_twice($link, $engine, 'FLOAT', 'FLOAT', 'd', 'd', '1.01', '1.02', 60);
117 bind_twice($link, $engine, 'INT', 'CHAR(1)', 'i', 's', 1, 'a', 70);
119 mysqli_close($link);