Lines Matching refs:link
15 if (false !== ($tmp = mysqli_real_query($link, 'THIS IS NOT SQL')))
18 if (false !== ($tmp = mysqli_real_query($link, "SELECT 'this is sql but with backslash g'\g")))
21 if ((0 === mysqli_errno($link)) || ('' == mysqli_error($link)))
24 if (!mysqli_real_query($link, "SELECT 'this is sql but with semicolon' AS valid ; "))
25 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
27 if (!is_object($res = mysqli_use_result($link)))
28 …seult object, got %s/%s [%d] %s\n", gettype($res), $res, mysqli_errno($link), mysqli_error($link));
33 …if (false !== ($res = mysqli_real_query($link, "SELECT 'this is sql but with semicolon' AS valid ;…
35 mysqli_errno($link), mysqli_error($link));
37 if (mysqli_get_server_version($link) > 50000) {
39 mysqli_real_query($link, 'DROP PROCEDURE IF EXISTS p');
40 …if (mysqli_real_query($link, 'CREATE PROCEDURE p(OUT ver_param VARCHAR(25)) BEGIN SELECT VERSION()…
42 mysqli_real_query($link, 'CALL p(@version)');
43 mysqli_real_query($link, 'SELECT @version AS p_version');
44 $res = mysqli_store_result($link);
48 … printf("[008a] Expecting array [%d] %s\n", mysqli_errno($link), mysqli_error($link));
54 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
56 mysqli_real_query($link, 'DROP FUNCTION IF EXISTS f');
57 …if (mysqli_real_query($link, 'CREATE FUNCTION f( ver_param VARCHAR(25)) RETURNS VARCHAR(25) DETERM…
59 mysqli_real_query($link, 'SELECT f(VERSION()) AS f_version');
60 $res = mysqli_store_result($link);
64 … printf("[009a] Expecting array [%d] %s\n", mysqli_errno($link), mysqli_error($link));
70 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
74 mysqli_close($link);
77 mysqli_real_query($link, "SELECT id FROM test");
87 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket))
90 if (!mysqli_query($link, "DROP TABLE IF EXISTS test"))
91 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
93 @mysqli_query($link, "DROP PROCEDURE IF EXISTS p");
94 @mysqli_query($link, "DROP FUNCTION IF EXISTS f");
96 mysqli_close($link);